Hello,
I am getting this error when I try to use the code on default of a toggle control. How can i fix this. Using a combo-box.
Hi @patricia_r ,
Last line
!(ThisItem.Codes.Value in cob_Codes.SelectedItems)
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.
You are comparing the last line with value vs values.
Hi @patricia_r ,
Can you please post your entire code a text and also confirm what type of field Codes is in your List.
I also assume cob_Codes is a Combo Box. Please also include the Items of this.
@WarrenBelz The codes column in my SharePoint list is a choice and is allowing multiple selections
It is a combo box
You still did not post your code as Text as requested, but no matter, this is now a far more complex problem as you simply cannot compare all the values in a Table (the Combo Box con_codes selected Items) with all the values in another one (your multi-value field codes).
I did a blog on a work-around - please have a read of it, but I am not sure it will fit what you need to do.
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.
Check out new user group experience and if you are a leader please create your group
Did you miss the call?? Check out the Power Apps Community Call here!
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
257 | |
247 | |
83 | |
36 | |
29 |
User | Count |
---|---|
296 | |
268 | |
117 | |
65 | |
45 |