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 / Check box according to...
Power Apps
Answered

Check box according to value in sharepoint

(0) ShareShare
ReportReport
Posted on by 58

Hi,

 

I have a check boxthat when unticked it patches a value of "Active" when thicked it patches a value of "Inactive", my issue is that right now it is patching correctly but when I close the application the checkboxes are not retaining their value. I would like that if I thicked the checkbox and then I close the application and reopen the tickbox need to be still checked.

 

Can you help me please?

 

thanks

regards

Categories:
I have the same question (0)
  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    Hi @roncam 

     

    set default property of your check box based on the value you stored in that column

     

    example for default property of checkbox:

     

    If(thisItem.Column="Active",true,false)

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @roncam ,

    Where do you put your Checkbox control? Within a Gallery?

    How do you patch value into your SP List when you check or uncheck the Checkbox? Using Patch formula?

     

    I assume that you add the Checkbox control within a Gallery, and patch the value back to your SP list using Patch function, is it true?

     

    Based on the needs that you mentioned, I have made a test on my side, plese take a try with the following workaround:4.JPG

    Set the OnCheck property of the Checkbox to following:

    Patch('YourSPList', ThisItem, {Status: "Inactive"}) /* <-- Status column represents the column in your SP list to store the "Inactive" or "Active" value */

    If the Status column is a Choice type column in your SP list, please modify above formula as below:

    Patch(
    'YourSPList',
    ThisItem,
    {
    Status: {
    Value: "Inactive"
    }
    }
    )

    Set the OnUncheck property of the Checkbox to following:

    Patch('YourSPList', ThisItem, {Status: "Active"}) /* <-- Status column represents the column in your SP list to store the "Inactive" or "Active" value */

    If the Status column is a Choice type column in your SP list, please modify above formula as below:

    Patch(
    'YourSPList',
    ThisItem,
    {
    Status: {
    Value: "Active"
    }
    }
    )

     

    Set the Default property of the Checkbox to following:

    If(
     ThisItem.Status = "Inactive",
     true,
     false
    )

    or

    If(
     ThisItem.Status.Value = "Inactive", /* <-- If the Status column is a Choice type column in your SP list */
     true,
     false
    )

    Please consider take a try with above solution, then check if the issue is solved.

     

    Best regards,

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

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard