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 Apps
Answered

Combobox Default

(0) ShareShare
ReportReport
Posted on by 94

Hi all,

 

I have created a form where the records can be viewed again after submission (selected from left container thus populating the right container). The values inputted via text are shown using Parent.Default and ThisItem.'Field' for the dates. However, neither option works for the combo boxes' "default selected items property". See below submitted form where the bottom 3 fields are combo boxes and are not populated.

 

R45_0-1715544243983.png

 

What is the best way to load the submitted data in the combo box, as shown for other fields? I have achieved the desired result for the "General Condition" field using a label over the combo box and setting default to ThisItem.'General Condition'. However, this has proven unreliable. Hoping for a better solution.

 

Thanks in advance.

Categories:
I have the same question (0)
  • Verified answer
    Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @R45 - assuming the data types for all three fields are Single Line Text, the typical workaround is to apply the below onto the DefaultSelectedItems property:

     

    {Value: Parent.Default}

     

    Or:

     

    {Value: ThisItem.'General Condition'}

     

    Or alternatively force the correct record if using complex data types using:

     

    LookUp(
     'Your Data Source',
     'General Condition' = Parent.Default
    )
    
  • R45 Profile Picture
    94 on at

    @Amik

     

    Thanks for your response. I have reloaded the app and some of the text fields that were working before now no longer show. Is there a way to prevent this? It appears to not be an issue with a particular data type as it shows for some. I am using SQL Server as a data connection.

     

    R45_0-1715547039841.png

     

     

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @R45 - they stopped working after you made a change to the DefaultSelectedItems property? or is this an unrelated question?

  • R45 Profile Picture
    94 on at

    @Amik 

     

    They stopped working once I reloaded the app, despite having made no changes to the default selected items property. If I add a new record it will show all of the values, however, this won't be the case upon restarting the app for some reason.

     

    Thanks

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @R45 - just so I understand it, you have now have a new issue unrelated to your initial question.

     

    The issue is associated to specific DataCards (bound to Single Line Text fields in your data source) not populating with any values when you first start the app?

  • R45 Profile Picture
    94 on at

    @Amik 

     

    Yes, that is correct.

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @R45 - I will need more clarity here.

     

    Depending on what you have on the Item property of that Edit Form control, I would not typically expect the Form to be populated with anything when you first start the App. It will only populated once you have associated it to a record (e.g. from a Gallery selection).

     

    So as I understand it, the Edit Form is correctly displaying nothing when you first start the app, but when you select an Item from the Gallery, all DataCards are not being populated?

  • R45 Profile Picture
    94 on at

    @Amik 

     

    I see the form as below when I open the app:

    R45_0-1715556228707.png

    Where only part of the form is populated. I then click on the gallery and the fields are still not populated. The app works as intended if I add a new record though.

     

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @R45 - could you create a new EditForm but without any of the customisations you made. Set the DataSource property to the same data source as the Gallery control, and set the Item property of the EditForm to something along the lines of:

     

    'Your Gallery Name'.Selected

     

    Then check if the DataCards correctly populate with the data based on the Gallery selection. I want to identify if the problem is to do with whatever customisations you might have made to your current EditForm.

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 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard