web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Help getting a multise...
Power Apps
Unanswered

Help getting a multiselect convert to text

(0) ShareShare
ReportReport
Posted on by 56

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. 

 

patricia_r_0-1610681287102.png

 

Categories:
  • WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    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.

  • joeinmay Profile Picture
    205 on at

    You are comparing the last line with value vs values.

     

  • WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    @joeinmay ,

    Not necessarily if it is a Choice field.

  • patricia_r Profile Picture
    56 on at

    Hi @WarrenBelz 

     

    Thank you for responding to my question, yet I am still getting an error. Thoughts?

    patricia_r_0-1610723530568.png

     

  • WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    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.

  • patricia_r Profile Picture
    56 on at

    @WarrenBelz  The codes column in my SharePoint list is a choice and is allowing multiple selections

    patricia_r_0-1610988925274.png

     

    It is a combo box

    patricia_r_1-1610989044540.png

     

  • WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    @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.

     

    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.

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard