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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Collecting Yes / No An...
Power Apps
Answered

Collecting Yes / No Answers from a Toggle button into Data Verse

(0) ShareShare
ReportReport
Posted on by 41
Hi Guys,
 

We have a scenario where were trying to collect a Yes / No Answer from Power Apps into Data Verse.
 
We have chosen to use a Toggle Button as it has a nicer user Experience.
 
Have set the On Check as true and OnUncheck as false
 
We Would like to collect Yes or No in our DataVerse so when its Checked we collect yes, when un checked we collect no
 
Is there a safe way of doing this using the Toggle?
 
 
Thanks
Dan
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
     
    Sure you can. If you're trying to patch a Yes/No Choice column in Dataverse. Just use the below:
    Patch(DVTable, Defaults(DVTable), {Choice: Toggle1.Checked })
    Hope this helps. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
  • Verified answer
    DM-12091425-0 Profile Picture
    41 on at
    Thanks Nandit,

    Have cracked it, I used the below Formula
     
    Patch(
        TestingTableOOOS,
        Defaults(TestingTableOOOS),
        {'Deaprture-Within-48Hrs': If(Yes_No_Value.Checked=false,"No","Yes")})
     
    This has done the trick
     
    Thanks for your advice on the Patch :)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard