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-Cut...
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.
Solved! Go to Solution.
Hi @FelipeCaru ,
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,
Hi @FelipeCaru
Hi @FelipeCaru ,
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:
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:
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,
Hi @FelipeCaru ,
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,
User | Count |
---|---|
193 | |
126 | |
88 | |
48 | |
42 |
User | Count |
---|---|
277 | |
162 | |
136 | |
81 | |
78 |