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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / "Reset" a text label a...
Power Apps
Answered

"Reset" a text label and/or "unselect" a listbox item

(0) ShareShare
ReportReport
Posted on by

Hello all,

I made a droplist/combobox by following the answer here:
https://powerusers.microsoft.com/t5/General-Discussion/PowerApps-Dropdown-Options-amp-Labels-Are-Cutoff/td-p/137268

The question I have is: how can I make it so if I save the form and that selected 'text', when I go to editscreen again, instead of showing the selected option, the text label either is "" (empty) and/or the option selected in the list that gives the textlabel its value, it is "unselected" thus not giving the text label a value.

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    Can you please confirm:
    1: If update property of your column corresponds to <<Dropdown>>Selected? It expects a record value.
    2: What is the default value of your dropdown? Check if it is ThisItem.<<attribute>>
     
    If these two things differ, please make the change and try to fetch the details again.
     
    Thanks,
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • v-xida-msft Profile Picture
    on at

    Hi @Anonymous ,

    Could you please share a bit more about your scenario?

    Do you want your custom Dropdown component to display the selected option/value when you edit an submitted record in your Edit form?

     

    I have made a test on my side, and don't have the issue that you mentioned. Please take a try with the following workaround:9.JPG

     

    10.JPG

    Set the OnVisible property of the Edit screen to following:

    UpdateContext({showList: false})

    Set the Default property of the ListBox to following:

    If(!IsBlank(ThisItem.Status.Value), ThisItem.Status.Value, "")

    On your side, you should type:

    If(!IsBlank(ThisItem.YourChoiceColumn.Value), ThisItem.YourChoiceColumn.Value, "")

    Set the Text property of the DataCardValueN label to following:

    If(!IsBlank(ListBox1.Selected.Value),ListBox1.Selected.Value, "")

    Please check the following GIF screenshot for more details:Test.gif

    I have also provided a sample app, please check the following attached Sample app.

     

    Please check if you have bind the ListBox within your Edit form to the Choice column in your SP list property. And have typed above proper formula within the Default property of the ListBox and the Text property of the DataCardValueN label.

     

    Best regards,

  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @Anonymous ,

    Just an update -- If you want to reset the DataCardValueN label and unselect the Listbox item within the Edit form when you edit an existing record, please set the Default property of the ListBox (ListBox1) to following:

    ""

    Note: If you want to reset your ListBox, please do not bind the Default property to the Choice column value of the current item.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    on at

    @v-xida-msft 

    Thank you, that was indeed what I needed.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard