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 / Convert single select ...
Power Apps
Answered

Convert single select (Yes/No) dropdown to checkbox doesn't work

(0) ShareShare
ReportReport
Posted on by 23

I want to change a Yes/No dropdown from a form to a checkbox, but I cant Update the form Using the function 

If(CheckboxName.Value=true,{Value:"Yes"},{Value:"No"})

One typical error is for example: "optionsetvalue-value expected" Can somebody please help?

Categories:
I have the same question (0)
  • NPPlatform Profile Picture
    606 Moderator on at

    Hi @aqrj , what part of the formula generates the error? The part 'CheckboxName.Value=true' or the part '{Value:"Yes"},{Value:"No"}'?

  • Verified answer
    BhaskarDhone Profile Picture
    1,398 Super User 2026 Season 1 on at
    Copy your code from items property of dropdown control.
    Example
    Choices ('Gender (Sample Tables)')
     
    Use field wrapped in choices for Update as below.
     
    If (Checkbox. Value, 'Gender (Sample Tables)'. Yes, 'Gender (Sample Tables)'. No)
     
  • aqrj Profile Picture
    23 on at

    @NPPlatform @BhaskarDhone the solution above has worked. Thank you very much for the help 🙂
    I wish you to have a nice day ahead. 🙂

  • BhaskarDhone Profile Picture
    1,398 Super User 2026 Season 1 on at

    Glad it helped. 

    Do not forget to accept it as solution & give a thumbs up 👍

  • aqrj Profile Picture
    23 on at

    @BhaskarDhone Thank you for the reply. I had another question. The function updates the data, but I can't see the the right value to be reflected to the checkbox after the data has been saved. How can I receive the data from the Dataverse to be reflected to checkbox?
    I use a Modern Checkbox and those functions are possible:
    OnCheck / OnUncheck and Checked (Value on old Checkboxes I think) 

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
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard