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 / Prepopulate choice for...
Power Apps
Answered

Prepopulate choice form field with data from a gallery label field that is a choice type

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a SP list that is displaying view only data in a gallery (Just one item). On the page the user will use that information to update an item. At the bottom of the screen I have form fields related to the list above that are editable so the user can update and save.

 

I have title which pre-populated (using default) from the title label in the gallery no issue. BUT then one of the labels is choice field in the gallery, it is displaying using ThisItem.Goal.Value in the gallery (this is all correct). However when I added the goal field to the form below and tried to prepopulate it with the label in the gallery that uses (ThisItem.Goal.Value) it will not work. These two fields are required to update the list via the form. Any suggestions?

Categories:
  • WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    Hi @Anonymous ,

    Try

    {Value:ThisItem.Goal.Value}

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    It did not error out but unfortunately it did not work either. I tried:

     

    The following:

    1. updating the Goal Data card default value to what you mentioned
    2. Updating the datacard value items field to what you mentioned

    I attached screenshots in case I updated the wrong parameters. Also note how under title it says testing in the form, then at the top in the gallery Project title reads testing. That was the only label I was able to get to work 😕

     

    pic2.png
    pic1.png
  • WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    Hi @Anonymous ,

    I see you are using a Combo Box on a Choice field - the DefaultSelectedItems should be

    {Value:ThisItem.Goal}

    and the Update of the card would be

    {Value:DataCardValue8.Selected.Goal}

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Unfortunately no luck. I did include a shot of the error though. Note a.png. Goal 1 is what I am trying to pre-populate it will change with every item opened.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    forgot attachments

    c.png
    a.png
    b.png
  • WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    OK @Anonymous ,

    I can see it all now - why are you trying to update from a label that already displays the value of the field? 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    The screen is meant for the approver to just review the content in the gallery. The only field at the bottom they need to edit (update) is the project request and comments (optional). However, because the form requires the title, and goal selection I was forced to put on the form otherwise it will not submit. My plan was to get it to prepopulate then just hide those fields. I am open to other suggestions. But ultimately the top (gallery) is review no edit. Then I want the user to update the project request field which is a choice and select approve/reject.

  • WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    @Anonymous ,

    Is this label inside a card on the Form? If so, the Text needs to be ThisItem.Goal

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    No the label is inside a gallery. The form is separate below.

  • WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    @Anonymous ,

    Can we please try to summarise this and what your issue is as the solution should be simple.

    Focusing on the combo box please provide (in text) the Items, Default and DefaultSelectedItems, the Update of the card it is contained in and the DataSource and Item of the Form.

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
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard