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 Platform Community / Forums / Power Apps / Combo box values disap...
Power Apps
Unanswered

Combo box values disappear in gallery after Save

(0) ShareShare
ReportReport
Posted on by 24

I have a Risks and Issues screen with an editable gallery that feeds a Risks and Issues dataverse table. The save button associated with each item in the gallery successfully patches all columns in the dataverse table, but the combo box fields (tied to choice columns in dataverse) go blank in the gallery after save. The text field datacard values still show up. Everything else seems to be working fine. Same thing happens with the Add button outside the gallery.

 

A few notes on my app:

  1. I used the Project column in the IT Portfolio gallery as a lookup to a Project column in this (Risks and Issues) table. I dont think I'm using the lookup correctly.
  2. I have an autonumber ID field in the Projects table that I relate to a manual LookupID field in the Risks and Issues table to filter the rows to those where the Lookup ID matches the Project autonumber.
  3. I dont have anything defined for the SelectedItems or Default controls for these combo boxes, not sure what they should be.
  4. Title is the primary name column.
  5. Syntax for the Save button and the Add New button are below, with screenshots before/after clicking Save:

 

Save button 'On Select' syntax

Patch
('Risks and Issues',ThisItem,
{crfc5_project:ProjectDataCard_1,
crfc5_lookupID: LookupDataCard_1,
'Risk or Issue':TypeDataCard_1,
crfc5_name: TitleDataCard_1.Text,
crfc5_description: DescriptionDataCard_1.Text,
'Risk or Issue Status': StatusDataCard_1.Selected.Value,
crfc5_duedate: DueDatePicker_1.SelectedDate})

 

Add button 'On Select' syntax

Patch
('Risks and Issues',
Defaults(
'Risks and Issues'),
{LookupID:'Gallery - Project List'.Selected.PortfolioAutonumber,crfc5_Project:'Gallery - Project List'.Selected,
Title:""})

 

Before Save

tuggehling_0-1676031285604.png

After Save

tuggehling_1-1676031285640.png

 

If there's a better way to do this, let me know! I a few similar screens with text and combo boxes in a gallery, all tied to individual dataverse tables.

 

Thank you so much.

Categories:
I have the same question (0)
  • zmorek Profile Picture
    3,272 on at

    The gallery is resetting itself after you patch and since you have nothing in the combo box's Default()/DefaultSelectedItems() property, it's defaulting to blank.

     

    You'll want to consider changing it to ThisItem.'Risk or Issue Status' (or whatever the column is)!

  • tuggehling Profile Picture
    24 on at

    Thank you; this seems logical but I am getting the following error:

     

    Name isn't valid. 'Value' isn't recognized.

     

    That happens for Default and Default Selected Items.

     

    Thoughts?

  • zmorek Profile Picture
    3,272 on at

    What about just ThisItem.'Risk or Issue Status'

  • tuggehling Profile Picture
    24 on at

    When I use that for the Default control: "Expected Record value"

    When I use that for the DefaultSelectedItems control: "Expected Table value"

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard