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 / How to show saved valu...
Power Apps
Answered

How to show saved values in textbox in new session

(0) ShareShare
ReportReport
Posted on by 371

Hello

I have a label with text property: If(ShowSavedValue, ThisItem.Student1, Concat(Combobox1.SelectedItems, NAME& " " & FIRSTNAME, ",")) The data is coming from a combobox selection.

The values remain for the current session, Smiley Happy but when I close the app and reopen it the label box is empty again, even though the data is saved on the datasource.

How can I show the saved data in the textbox when I open a new session?

(I've given up trying to set the default values on the combobox)!!

Thanks
Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Englishweb ,

    How do you set the ShowSavedValue variable within your app?

     

    Based on the issue that you mentioned, it means that -- when the ShowSavedValue equals true, it would retieve the saved Student1 value from your data source, otherwise, it would retrieve value from ComboBox selections.

     

    If you want to load the saved Student1 value from your data source into the Label box, please make sure the ShowSavedValue is true when you loaded your app.

    I have made a test on my side, please consider take a try with the following workaround:

    Set the OnStart property of the App to following:

    Set(ShowSavedValue, true)

    Set the Text property of the Label to following:

    If(
    ShowSavedValue,
    ThisItem.Student1,
    Concat(Combobox1.SelectedItems, NAME& " " & FIRSTNAME, ",")
    )

    Please consider take a try with above solution, then re-load your app (fire the OnStart property of the App), then check if the issue is solved.

     

    Best regards,

  • Englishweb Profile Picture
    371 on at

    Perfect,Thank you!

    Such a simple , straightforward solution which avoids the combobox DefaultSelectedItems issue!

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