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!