cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Partisan
Post Partisan

Components and Back button

HI

I'm using a component for my header on my canvas app,  which includes a back button to navigate to a previous screen with the code in the component  on the OnSelect property of the back button set to Back(Fade)

It appears the back button on the home page holds no value, so I'd like to disable it, as it cannot go back as there is no back screen to navigate to, what do i do in a situation like this?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Post Partisan
Post Partisan

Re: Components and Back button

@EricLott 

Further to my last message will be good to know what you meant or how i do your suggestion

 

But I've just figured another way, ive changed the displaymode property of the button in the component to state:

 

If(App.ActiveScreen.Name = "HomeScreen", DisplayMode.Disabled, DisplayMode.Edit)

 

I guess this does not cater for the unlikely scenario when the user is navigating from a view screen to the home screen, as the button will stay disabled

View solution in original post

4 REPLIES 4
Highlighted
Resident Rockstar
Resident Rockstar

Re: Components and Back button

You could have an input property on your component for whether the Back button is enabled and just set it to false on the home page.

Highlighted
Post Partisan
Post Partisan

Re: Components and Back button

Hi @EricLott 

How do get an input property on the components back button?

Highlighted
Post Partisan
Post Partisan

Re: Components and Back button

@EricLott 

Further to my last message will be good to know what you meant or how i do your suggestion

 

But I've just figured another way, ive changed the displaymode property of the button in the component to state:

 

If(App.ActiveScreen.Name = "HomeScreen", DisplayMode.Disabled, DisplayMode.Edit)

 

I guess this does not cater for the unlikely scenario when the user is navigating from a view screen to the home screen, as the button will stay disabled

View solution in original post

Highlighted
Community Champion
Community Champion

Re: Components and Back button

Watch back input on components at 6:38 minutes:

https://youtu.be/r_PhxRWQTqA

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (6,421)