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.
Solved! Go to Solution.
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.
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.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
User | Count |
---|---|
170 | |
94 | |
64 | |
63 | |
60 |
User | Count |
---|---|
243 | |
163 | |
94 | |
84 | |
82 |