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 / Checkbox for DataVerse...
Power Apps
Suggested Answer

Checkbox for DataVerse Field on Power Apps

(1) ShareShare
ReportReport
Posted on by 55
Hi All,
 
Still learning Power Apps and have a question.  I want to use a checkbox on my Power Apps form instead of a dropdown.  I get the checkbox to display checked/unchecked correctly but can't get the field to update datavers.
 
This is my Dataverse Field
 
 
 
This code on my checkbox default works.
 
 
What should I put on my datacard update?  I put the following and get the error below?
 
 
 
 
Thank you in advance.
Categories:
I have the same question (0)
  • Suggested answer
    mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at
    hey
     
    normally you are using a patch function or submitform (formname) to save the data back to your datasource
     
    as a beginning have a look at this:
     
    if it helped, please mark as verified answers,
     
     
    cheers
  • Dunes Profile Picture
    55 on at
    Hi,
     
    I have a button which has submit form code which updates dataverse for all my fields correctly and I am not using the patch.  I would think I need to set this datacard to a value based on the checkbox but I am getting a boolean error.   
  • Suggested answer
    mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at
    ok i see
     
    can u try this in the update property, just to check if it works:
    If(Checkbox1.Value = true, true, false)
    
    if it helped please mark as verified answer,
     
    thanks
  • Dunes Profile Picture
    55 on at
    I had tried that and variations on the DataCard Update and still get this boolean error.
     
  • Suggested answer
    SaiRT14 Profile Picture
    1,990 Super User 2025 Season 2 on at
    check it out:
     
    • Bind the Checkbox to a Boolean Field:  Ensure that the Dataverse field you're trying to update is a Yes/No (Boolean) field. The Checkbox control should be linked to this field. Checkbox1.Default = ThisItem.IsActive

    • Patch the Value from the Checkbox:  To update the Dataverse field with the checkbox value, you need to use the Patch function. This function will update the Boolean field in Dataverse based on whether the checkbox is checked (true) or unchecked (false).

      Patch(
      'YourDataverseTable',
      ThisItem,
      {
      IsActive: Checkbox1.Value
      }
      )
    • SubmitForm (If Using a Form):  If you're using a form control to manage the data, ensure the checkbox is bound to the correct Dataverse field:  Set the Checkbox1.Default property to the field from Dataverse, as in:

      Checkbox1.Default = ThisItem.IsActive.  Then, in the form’s OnSubmit event, simply call SubmitForm(FormName):  SubmitForm(EditForm1)
    • Error Handling:  If the field isn't updating, ensure:  The field is correctly mapped in Dataverse (Boolean type).  The correct permissions are available for updating the record.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard