Announcements
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.
@joeinmay ,
Not necessarily if it is a Choice field.
Hi @WarrenBelz
Thank you for responding to my question, yet I am still getting an error. Thoughts?
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
@patricia_r ,
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.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 395 Super User 2026 Season 2
Mohsin Ali 328
WarrenBelz 260 Most Valuable Professional