web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Move text from one dat...
Power Apps
Unanswered

Move text from one data card to another with OnSelect

(0) ShareShare
ReportReport
Posted on by 89

Our current project tracking is on a old version of PowerApps and I'm creating a tracker in the new version.  In the old, there is a setup to have the current "progress note" text move to "progress notes history" when the "add new" icon is selected, and then erases the text in the current "progress note" so that a new note can be entered.  The current progress note appends to the progress notes history; it does not delete the history data.  It's also coded to add current date and the user's name to the front of the new progress note.  I've attempted to copy the expressions from the old PowerApps to the new version but I keep getting errors, as I believe a lot of the expressions are outdated.

 

Does anyone have a suggestion on how to add this function?

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @pandalove19,

     

    Can you please share the old expressions and the errors you receive?

  • pandalove19 Profile Picture
    89 on at

    Hello.  The previous builder used a lot of variables and "hidden" boxes and I'm having a hard time deciphering the purpose of each and where/when to create the variables.   That's why I was asking if there is a better way.

     

    Here is some of the information in the old app:

     

    • Add new icon – OnSelect:  ClearCollect(PreviousNotes, {PreviousNote: PregressNotesValue, History: ProgressHistoryValue});Set(UpdateHistory,true);Set(ClearNotes,true);Set(ClearNotesValue,"");Set(ClearNotesValue,VarCurrentUser.FullName & " - " & Text(Now(),DateTimeFormat.ShortDate) &" "& har(10));Set(varDisableNewNoteBtn,true)

     

    • Add new icon – DisplayMode: If(varDisableNewNoteBtn,DisplayMode.Disabled,DisplayMode.Edit)
    • Current Progress Notes data card (“PregressNotesValue”) – Default:  If(ClearNotes,ClearNotesValue,Parent.Default)
    • Current Progress Notes data card (“PregressNotesValue”) – DisplayMode:  If(varDisableNewNoteBtn,DisplayMode.Edit,DisplayMode.View)
    • Progress Notes History data card (“ProgressHistoryValue”) – Default:  If(UpdateHistory,HiddenHelperPreviousNoteLbl.Text & Char(10) & "__________________________________________________________________________________" & Char(10) & HiddenHelperCommentHistoryLbl.Text,Parent.Default)
    • Progress Notes History data card (“ProgressHistoryValue”) – DisplayMode:  If(varEditCommentHistory,DisplayMode.Edit,DisplayMode.View)
    • HiddenHelperCommentHistoryLbl – Text:  First(PreviousNotes).History.Text
    • HiddenHelperPreviousNoteLbl – Text:  First(PreviousNotes).PreviousNote.Text

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard