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 / Update Choice Field in...
Power Apps
Unanswered

Update Choice Field in Form Based Upon Multi-select Field in Same Form

(0) ShareShare
ReportReport
Posted on by 12

I have a form that contains a Multi-select Choice field called "Harris County Precinct". There are four precincts the user can choose and can select multiple precincts. For reasons, I need to be able to take to populate another field "Primary Precinct" with the first Precinct selected in the "Harris County Precinct" field. 

 

I've tried the following code on the OnSuccess property of the form:

 

Patch('HCFCD Projects', Self.LastSubmit, {'Primary Precinct': Index(Choices([@'HCFCD Projects'].'Harris County Precinct'),1)})

 

However, the "Primary Precinct" field keeps defaulting to Precinct 1.

 

Any help would be much appreciated.

 

Thanks!

Categories:
I have the same question (0)
  • EddieE Profile Picture
    4,641 Moderator on at

    @zachary_stern21 

    Try using 

    First( yourComboBoxName.SelectedItems).Value

    If 'Value' doesn't work, remove it and re-add the '.' and let Intellisense guide you as to what you can select.

  • zachary_stern21 Profile Picture
    12 on at

    I'm not using a Combobox on this screen. This is just a form and I want one field to be equal to another field, except in the case where one field has multiple choice selections, I just want the second field to be equal to the first selection of the first field

  • EddieE Profile Picture
    4,641 Moderator on at

    @zachary_stern21 

    If you are not using a ComboBox then what type of field is holding your multiple choices? What data type is this field - eg type Text - and if so, how is it separated into choices? I'm a little confused.

  • zachary_stern21 Profile Picture
    12 on at

    It is a field in a Form (HC Primary Precinct). It is a Choice Field that allows for multi-select options

     

    zachary_stern21_0-1684878577020.png

     

  • EddieE Profile Picture
    4,641 Moderator on at

    @zachary_stern21 

    That looks a lot like a ComboBox to me, try the code I posted above to check.

     

    Also, if you just added an Edit Form to a screen from say, a SharePoint list with a Choice field, PowerApps automatically adds a ComboBox for you into 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard