cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Combo box - defaultselecteditems - parent.default

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: 

  • Record has Value(s) - this is set as defaultselecteditems
  • Record has no Values(s) - no items are selected
4 REPLIES 4
Highlighted
Frequent Visitor

Re: Combo box - defaultselecteditems - parent.default

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.

Highlighted
Community Support
Community Support

Re: Combo box - defaultselecteditems - parent.default

Hi @Kroon,

 

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.

 

Capture.PNG

 

 

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

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Frequent Visitor

Re: Combo box - defaultselecteditems - parent.default

Hello  v-monli-msft

 

 

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.

 

Highlighted
Frequent Visitor

Re: Combo box - defaultselecteditems - 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 valueView Screen - Vestiging has no value

Edit Screen - Combobox does selectionEdit Screen - Combobox does selection

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,564)