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
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PWREduCon768x460.png

Join us at PWR EduCon - A Power Platform Conference

Learn from the top Power BI, Power Apps, Power Automate & Power Virtual Agents experts!

Top Solution Authors
Top Kudoed Authors
Users online (3,425)