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 / Generate 'yes/no' from...
Power Apps
Answered

Generate 'yes/no' from checkbox

(0) ShareShare
ReportReport
Posted on by 69

Hello,

I am trying to generate 'yes/no' answers from two checkboxes and have it show up as 'yes/no' in my data source. I've tried following some other guides, but get stuck. This is probably very simple, but I haven't been able to figure it out.

Thanks! 

Categories:
I have the same question (0)
  • Akash17 Profile Picture
    Super User 2024 Season 1 on at

    Hi @TCM 

    Your scenario is not much clear as you haven't attached anything but still in general scenario you can do following😊

    You can patch your checkbox response into database using

    Patch(Tablename,Defaults(Tablename),{Yesno:Checkbox1.Value}); note Yesno is my column name in database

    and if you want to show this response in the form of Yes/No in gallery then on Text property of the Label you can set 

    If(ThisItem.Yesno=true,"Yes","No")

    Screenshot (626).png

  • Verified answer
    WarrenBelz Profile Picture
    156,419 Most Valuable Professional on at

    Hi @Akash17 ,

    Just adding another option if you are using SubmitForm - I do exactly what you are doing (I do not use Boolean fields at all) - here is a section of my Delegation blog with the process.

  • Akash17 Profile Picture
    Super User 2024 Season 1 on at

    Thank You @WarrenBelz 😊

  • TCM Profile Picture
    69 on at

    Hello,

    Here the image for my app. I've tried both solutions and the code is showing up as an error. I'm not sure where to put Patch(Tablename,Defaults(Tablename),{Yesno:Checkbox1.Value});. 

    TCM_0-1659982587516.pngTCM_1-1659982690342.png

    Thanks!

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

    @TCM ,

    The code is actually exactly what @Akash17 had for the label but in reverse - it is also in my blog

    Patch(
     Tablename,
     Defaults(Tablename),
     {
     Yesno: If(Checkbox1.Value, Yes","No")
     }
    )

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 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard