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 Apps
Answered

Reset Checkbox

(0) ShareShare
ReportReport
Posted on by 38

Hi all!

 

I has 3 Checkboxes and 1 Label and I need to make it possible to choose only one Checkbox that updates the information in Label but The UpdateContex function does not give the desired result. With my formula, I can select all the Checkboxes at once. What is my mistake?

 

Checkbox1.Reset = ResetCheck1

Checkbox1.OnCheck

UpdateContext({ViewShpunt: "Info1"});;
UpdateContext({ResetCheck2: true});;
UpdateContext({ResetCheck3: true})

Checkbox1.OnUncheck

UpdateContext({ViewShpunt: ""});;
UpdateContext({ResetCheck1: false})

 

Checkbox2.Reset = ResetCheck2

Checkbox2.OnCheck

UpdateContext({ViewShpunt: "Info2"});;
UpdateContext({ResetCheck1: true});;
UpdateContext({ResetCheck3: true})

Checkbox2.OnUncheck

UpdateContext({ViewShpunt: ""});;
UpdateContext({ResetCheck2: false})

 

Checkbox3.Reset = ResetCheck3

Checkbox3.OnCheck

UpdateContext({ViewShpunt: "Info3"});;
UpdateContext({ResetCheck1: true});;
UpdateContext({ResetCheck2: true})

Checkbox3.OnUncheck

UpdateContext({ViewShpunt: ""});;
UpdateContext({ResetCheck3: false})

Categories:
  • Verified answer
    CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @mhuhka ,

    You were so close....What you need to do is to restore you reset flags to false after you reset the controls. Please complete your formulas with:

     

    Checkbox1.Reset = ResetCheck1

    Checkbox1.OnCheck

    UpdateContext({ViewShpunt: "Info1"});;
    UpdateContext({ResetCheck2: true});;UpdateContext({ResetCheck2: false});;
    UpdateContext({ResetCheck3: true});;UpdateContext({ResetCheck3: false})

    Checkbox1.OnUncheck

    UpdateContext({ViewShpunt: ""});;
    UpdateContext({ResetCheck1: false})

     

    Checkbox2.Reset = ResetCheck2

    Checkbox2.OnCheck

    UpdateContext({ViewShpunt: "Info2"});;
    UpdateContext({ResetCheck1: true});;UpdateContext({ResetCheck1: false});;
    UpdateContext({ResetCheck3: true});;UpdateContext({ResetCheck3: false})

    Checkbox2.OnUncheck

    UpdateContext({ViewShpunt: ""});;
    UpdateContext({ResetCheck2: false})

     

    Checkbox3.Reset = ResetCheck3

    Checkbox3.OnCheck

    UpdateContext({ViewShpunt: "Info3"});;
    UpdateContext({ResetCheck1: true});;UpdateContext({ResetCheck1: false});;
    UpdateContext({ResetCheck2: true});;UpdateContext({ResetCheck2: false})

    Checkbox3.OnUncheck

    UpdateContext({ViewShpunt: ""});;
    UpdateContext({ResetCheck3: false})

     

    The control actually resets only when the flag goes from "False" to "True".

     

    Hope it helps !  

  • mhuhka Profile Picture
    38 on at

    Hi @gabibalaban 

     

    That's great! Thanks! 

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
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard