cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rebeccak
Helper III
Helper III

Back Button within the same screen

I have a screen that has multiple controls (mostly buttons). These controls set certain variables to have different galleries and metrics filtered and visible.  I would like to use the back arrow icon on the screen. Once clicked it would set the previous looked at variables.

example:

 

Button1.onselect- UpdateContext({varbackbutton:"1"});Set(vartype,Management)

Back arrow Icon.Default-varbackbutton

BackArrowIcon.Onselect-If(varbackbutton="1",Select(Button1))

 

This works somewhat, i think i need a varcurrentbutton, then onchange,set varbackbutton  or something like that. 

 

I just want to do the last event. Any Ideas?

3 REPLIES 3
PowerAddict
Super User
Super User

If you want the back button to do what Button1 does, have you tried using the same OnSelect property for back button as that of button1? I am assuming between clicking on Button1 and the back button, there are other steps the user will take?

Let me know if I am missing any details.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Thanks!
Hardit Bhatia
The Power Addict
https://thepoweraddict.com

Ok. Ill try and explain it a little better. 

User clicks button1 (variables are set, showing different galleries and such)

User clicks button2(variables are set, showing different galleries and such)

User clicks button 3 within a gallery presented by button 2 (shows information regarding item in gallery)

User clicks the back icon goes back to only button2 variables, then clicks back again and button1 variables are displayed.

 

Does that make sense?

"User clicks button 3 within a gallery presented by button 2 (shows information regarding item in gallery)"

Set a variable (say Button3ContentVisible) to true on the OnSelect of Button3. "Information regarding item in gallery" should have their visible property set to Button3ContentVisible.

Now the back button will have an OnSelect property set to:
Set(Button3ContentVisible, false)

Also on the OnVisible property of the screen, set the variable to false so that Button3 content is not visible by default.
Set(Button3ContentVisible, false)

Let me know if that meets your needs.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Thanks!
Hardit Bhatia
The Power Addict
https://thepoweraddict.com




Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (3,597)