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 / How do I keep the Chec...
Power Apps
Answered

How do I keep the CheckboxCanvas value persistent across screens?

(0) ShareShare
ReportReport
Posted on by 517
Hi all,

how can I keep the value of my CheckboxCanvas persistent when navigating between screens, both forwards and backwards?
I can't get it to work with the new CheckboxCanvas — or am I using it incorrectly?
 
Regards,
dKayt
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,079 Most Valuable Professional on at
    Hi @dkayt,
    A bit hard to respond on the information posted - where are these Check Boxes (in a Form?) and what is the Checked property of them ?
  • dkayt Profile Picture
    517 on at

    Hi @WarrenBelz,

    sorry for being unclear earlier.

    On Screen 1, I have two checkboxes (ckb1 and ckb2). I'm toggling between them, and I want the last selected value to persist when navigating to another screen and then coming back.

     
    Properties of ckb1: 
     
    Properties of ckb2
     
    I'm storing the value in a variable called varVroGreen, and I can see the correct value is being stored. However, it doesn't seem to update or trigger the checkboxes when I return to the screen.

    Let me know if you need more details.

  • Verified answer
    WarrenBelz Profile Picture
    153,079 Most Valuable Professional on at
    Hi @dkayt,
    Do this on both checkboxes
     
    OnCheck
    Set(varVorGreen, true)
    OnUncheck
    Set(varVorGreen, false)
    Checked
    varVorGreen
    There is an easier way with Classic checkboxes, which you should consider switching to if you have inconsistencies with the Modern item.
     
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn   
  • dkayt Profile Picture
    517 on at
     
    thanks for replying.

    I tried your first solution with the modern item, but unfortunately it didn't work as expected. But your recommendation to use the classic checkboxes worked perfectly! I'll mark your answer as the solution. 

  • WarrenBelz Profile Picture
    153,079 Most Valuable Professional on at
    Hi @dkayt,
    Using a Classic CheckBox, you just need to do this OnSelect of both
    Set(
        varVorGreen,
        Self.Value
    )
    and then the Default of both
    varVorGreen
    Modern controls still have a lot of bugs and really should not be used in prod apps presently. The code above should technically work on a Modern item, but my testing here indicates it does not.

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