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 / Reset Button to false
Power Apps
Answered

Reset Button to false

(0) ShareShare
ReportReport
Posted on by 254

Hello!! I am trying to find a solution for really long time☹️ I have button "More options", which have properties: OnSelect:UpdateContext({ReauditStatusField:true}) and I have button "Hide more options", which have properties: UpdateContext({ReauditStatusField:false}). Important to say that it is in Edit Mode.

So when user click on More options he can see two new fields and button Hide more options, please take a look on pictures:

MoreOptions.png ---->HideMoreOptions.png 

I have already tried Screen - OnVisible:UpdateContext({ReauditStatusField:false}), I thought that it can make my button set to false, but it doesnt work. I suppose that it is because of View mode and Edit mode. 

So I need to achieve this scenario:

1. User go to Edit mode, click on button "More options" --> OnSelect:UpdateContext({ReauditStatusField:true})

2. User come back to View mode

3.User go again to Edit Mode and see that he need to click again om button "More options" to see more options, so it shouls be OnSelect:UpdateContext({ReauditStatusField:false}) I CAN NOT ACHIEVE THIS THIRD STEP

I hope somebody can help

Categories:
  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    I am unclear on how step 2 is achieved. When the User "comes back to View mode" are they leaving the screen and returning? OnVisible runs every time the page loads. If you need to change the variable while the page is showing you will just need to find an event that you can tie that to. If the form is changing from Edit to View mode there must be an event that causes that. You should be able to add the change to that event.

  • Aleksandra1 Profile Picture
    254 on at

    So it is still one Form but user can be in view mode (it means he can not edit anything) or user can click on button and he will be in edit mode, so he can edit the from. 

  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    So you can add the reset to false to that button. You will have to decide if it matters when during that process it occurs, but that would be the place to reset it

  • Aleksandra1 Profile Picture
    254 on at

    Where I can add reset to false?

  • Verified answer
    BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    The button the user clicks to move from Edit to View. In its simplest version you can just add a ";" to the end of the OnSelect code and add the UpdateContext code you listed

  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    The button the user clicks to move from Edit to View. In its simplest version you can just add a ";" to the end of the OnSelect code and add the UpdateContext code you listed

  • Aleksandra1 Profile Picture
    254 on at

    thank you it works!!😊

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 339 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard