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 / Make a toggle in a for...
Power Apps
Answered

Make a toggle in a form patch an multitselect field YES/NO

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello!

 

I want to insert an toggle into a form. I want this toggle to patch an multiselect column in sharepoint list with the choiches YES/NO.

 

True=Yes, False=No

 

Is this possible?

Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous :

    Yes,the key is to modify the UpdateProperty of the data card.

    Could you tell me does the "multiselect column" allow mulitple selections?

    My data source: 'A'

    Q1-Choice(do not allow multiple selections)

    Q2-Choice(allow multiple selections)

    Step1:Add a edit form

    DataSource

    A

    Item

    First(A)

    Step2:Use troggle to replace the original combobox control

    29.gif

    Step3:

    Set the Q1_DataCard1's Update proeprty to:

    If(Q2Toggle2.Value,Table({Value:"Yes"}),Table({Value:"No"}))

    Set the Q2_DataCard1's Update proeprty to:

    If(Q2Toggle2.Value,Table({Value:"Yes"}),Table({Value:"No"}))

     5.JPG

    Step4:Fix some errors caused by deleting the control according to the error message. (Because it does not affect the function realization, I did not perform this step)

    30.gif

    Best Regards,

    Bof

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello!

     

    I get this error:

    The value Record was expected

     when i try this code on the datacard:

     

    If(Q2Toggle2.Value,Table({Value:"Yes"}),Table({Value:"No"}))

     

     

    The column in sharepoint list does not allow multiple selection. You can only choose either YES or NO from a dropdown

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous :

    The field on yourside seems do not allow mulitple selections.If so,there is no need to use the Table() function.

    Please try this code:

    If(Q1Toggle1.Value,{Value:"Yes"},{Value:"No"})

    Best Regards,

    Bof

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard