cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
objectivelyLost
Helper I
Helper I

Use different fields for display and default in radio and dropdown controls?

I like to use a table for the items property in my choice controls so that I can change the display text as needed without having to adjust other formulas that are referencing the selections. For example:

 

Table(

{value: "Option A", index:1},

{value: "Option B", index:2},

{value: "Option C", index:3}

 

Now if I want to change "Option A" to read "Option D",  I don't have to change it anywhere else, since I'm referencing the index and not the displayed value directly.  

 

The only issue with this is that the default property seems to only work with the column that is being displayed.  Is there a simple way to use another column for the default value?  I know I can create the table as a variable rather than in the control and use a lookup to reference it, but that seems like it would be a pain to deal with if there are more than a handful of option controls.

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @objectivelyLost ,

That process (as you have discovered) often does not function well. I use a conditional argument to do a collection (ensure the field name is the same) and then use the collection as the Items of the drop-down. 

 

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.

View solution in original post

1 REPLY 1
WarrenBelz
Super User
Super User

Hi @objectivelyLost ,

That process (as you have discovered) often does not function well. I use a conditional argument to do a collection (ensure the field name is the same) and then use the collection as the Items of the drop-down. 

 

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.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,636)