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 / How make fields hidden...
Power Apps
Unanswered

How make fields hidden by default?

(0) ShareShare
ReportReport
Posted on by 254

Hey, I have a local variable "ReauditStatusField". 

 

Now we are in edit mode! I have button "More options" OnSelect: UpdateContext({ReauditStatusField:true}.

button more options.png

 

 When you click on this button you will see two fields and another button "Hide more options" OnSelect: UpdateContext({ReauditStatusField:false}.(button "More options is invisible now).

button hide more options.png

 

So the question is: default should be UpdateContext({ReauditStatusField:false}. It means when I come back to view mode and after again to edit this two fields should be hidden by default. But now it works in way: if user didn't hide these two fields by himself and go somhere else and after come back to this page, these two field are not hidden.

 

How can I achieve it? in my form on visible properties I set UpdateContext({ReauditStatusField:false} but it doesnt work.

Thanks!

Categories:
I have the same question (0)
  • Akser Profile Picture
    1,546 Moderator on at

    What happens when you add UpdateContext({ReauditStatusField:false} to OnVisible property of the screen?

  • Aleksandra1 Profile Picture
    254 on at

    nothing😊

  • Akser Profile Picture
    1,546 Moderator on at

    What about this?

     

    UpdateContext({ReauditStatusField:true}; UpdateContext({ReauditStatusField:false}

    See more: https://powerusers.microsoft.com/t5/Building-Power-Apps/OnVisible-Not-Firing/m-p/63081/highlight/true#M26019

     

  • Aleksandra1 Profile Picture
    254 on at

    Where should I write these lines of code?

  • Akser Profile Picture
    1,546 Moderator on at

    Screen -> OnVisible

  • Aleksandra1 Profile Picture
    254 on at

    unfortunately it doesn't work too

  • Akser Profile Picture
    1,546 Moderator on at

    Hmm interesting. We may need to reset the controls as well. How do you tell Re-audit status and Re-audit comment to show / hide? If those are simply controls, then could you also Reset them?

    UpdateContext({ReauditStatusField:true}; UpdateContext({ReauditStatusField:false};
    Reset(Control1); Reset(Control2);
  • Aleksandra1 Profile Picture
    254 on at

    Unfortunately I can not use Reset, because I get an error, that I need a control, which I can reset

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 547

#2
WarrenBelz Profile Picture

WarrenBelz 444 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard