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 / Checkbox untick when c...
Power Apps
Unanswered

Checkbox untick when close the app

(0) ShareShare
ReportReport
Posted on by 75

Hi everyone ! 

I need help please, 

RodrigoSifon_0-1703607948533.png


I read something that I need to create a collect.. someone can help me? 
I Need to put a status of the property but the checkbox reset.

Categories:
  • Prabhakar_S Profile Picture
    735 Moderator on at

    Hi @RodrigoSifon ,

     

    You can set the 'Default' property of the checkbox to 'false' to initially uncheck the checkbox. If you want the checkbox to start in an unchecked state every time the app is opened, you don't necessarily need to use a collection for this specific case.

     

    This way, whenever the app is opened, the checkbox will start in an unchecked state by default. If the user checks or unchecks it during the session, that state won't persist when they close and reopen the app unless you use some form of data storage (like a collection) to maintain the state across sessions.

     

    Thanks!!!

     

    Please consider marking my response as the accepted solution if it successfully resolves your concern. If you found the information beneficial in other aspects, kindly express your appreciation by giving it a thumbs-up.

  • RodrigoSifon Profile Picture
    75 on at

    " If you want the checkbox to start in an unchecked state every time the app is opened"
    I need the opposite ! 

    I want every time you click on the checkbox to be saved for the next time you open the app

  • Prabhakar_S Profile Picture
    735 Moderator on at

    Hi @RodrigoSifon ,

     

    If you want to save the state of the checkbox so that it persists across sessions (i.e., even when the user closes and reopens the app), you'll need a mechanism to store and retrieve this information. One way to achieve this is by using some form of external storage, such as a SharePoint list, or a database.

     

    For a more permanent solution, you could consider using a SharePoint list or an external database to store the checkbox state. 

     

    - Create a SharePoint list with two columns: 'ID' and 'CheckboxState'.

    - On the OnStart property of your app, retrieve the checkbox state from the SharePoint list:

    ClearCollect(CheckboxState, SharePointListName)

    - Set the Default property of your checkbox based on the value stored in the collection:

    LookUp(CheckboxState, ID = "YourAppID").CheckboxState

    - Set the OnCheck and OnUncheck properties of your checkbox to update the SharePoint list:

    // OnCheck
    Patch(SharePointListName, LookUp(SharePointListName, ID = "YourAppID"), { CheckboxState: true })

    // OnUncheck
    Patch(SharePointListName, LookUp(SharePointListName, ID = "YourAppID"), { CheckboxState: false })

    Replace "YourAppID" with a unique identifier for your app. With this setup, the checkbox state will be stored in the SharePoint list, and it will persist across app sessions.

     

    Thanks!!!

     

    Please consider marking my response as the accepted solution if it successfully resolves your concern. If you found the information beneficial in other aspects, kindly express your appreciation by giving it a thumbs-up.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard