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 / Initialize variables
Power Apps
Answered

Initialize variables

(0) ShareShare
ReportReport
Posted on by 496

Hi ,

 

I have a variable initialized at the screen1 Onvisible  property  as - Set(goahead,false);UpdateContext({goahead:false});

 

There is a button on the same screen , will navigate to screen2 .. once in Screen2 , goahead variable will be changed to true and goes back to screen1 ,, but it will be set to false since Screen1 onvisible property will change it back to false. 

I need to keep the goahead as true once back in screen 1 even ..

 

would you pls advice me a logic for this .

 

rgds

AD

 

Categories:
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @ajithd6368 

    OnVisible property of the Screen1:

    If(IsBlank(goahead), Set(goahead, false))

  • ajithd6368 Profile Picture
    496 on at

    Thanks Drrickryp ,

     

    thanks its done perfectly my work ..

     

    rgds

    AD

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard