Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • Suggested answer
    SaiRT14 Profile Picture
    1,961 Super User 2025 Season 1 on at
    Checkbox for DataVerse Field on Power Apps
    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.

  • Dunes Profile Picture
    55 on at
    Checkbox for DataVerse Field on Power Apps
    I had tried that and variations on the DataCard Update and still get this boolean error.
     
  • Suggested answer
    mmbr1606 Profile Picture
    11,991 Super User 2025 Season 1 on at
    Checkbox for DataVerse Field on Power Apps
    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
    Checkbox for DataVerse Field on Power Apps
    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
    11,991 Super User 2025 Season 1 on at
    Checkbox for DataVerse Field on Power Apps
    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard