Issue appears on opening a form in edit mode with a record with no value for the combobox.
As defaultselecteditems I add the parent.default to the combobox. This works fine when there is a value, but when the record has no value the defaultselecteditems value becomes "x" and this is set as the selected value.
How should this work:
Found the solution to handle this. Formula:
If(! IsBlank(Parent.Default.fieldwithselectedvalue), Parent.Default)
Still would be more logical when there is no default selection when field has no value.
Hi @Anonymous,
I just created an app using the SharePoint list connection and let PowerApps generates the app automantically. In edit form, the formula for combo box DefaultSelectedItems property is Parent.Default.
And if there is no value in current item, then the combo box shows "Find items", not "X" you mentioned. Doesn't this default result meet your requirement?
Regards,
Mona
Hello v-monli-msft,
Are you sure you're looking at a combobox, with PowerApps autogenerate there wil be normally a Lookup field? And are you sure you have the edit screen, looks like the view screen for me?
I tried to generate a new PowerApp and then add the combobox to the edit screen. Link the combobox to the Parent Update and set parent.default bij DefaultselectedItems. Still the same behaviour when I select an item with no value (the field is not mandatory) for the combobox. I think the combobox sees the value as "" and creates a selected item with a "" value (this is why only a cancel icon is visible.
As I posted is a solution to do an if statement that checks wether the value is not "" and only then do the Parent.Default.
Pictures that shows the behaviour. First box under vestigingen is the standard created Lookup Field, the second is the combobox.
View Screen - Vestiging has no value
Edit Screen - Combobox does selection
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
203 | |
187 | |
81 | |
50 | |
37 |
User | Count |
---|---|
290 | |
244 | |
122 | |
74 | |
55 |