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 / If "Back" is empty or ...
Power Apps
Answered

If "Back" is empty or Blank go to a specific page

(1) ShareShare
ReportReport
Posted on by 235

Hey Everyone,

 

I have an app that uses Param when a notification is clicked. It takes them to a page in the app with a Back button. But if it loads straight to that page there is no Back. Is there a way to formulate If "Back" is empty go to "Desired Page"?

 

Thanks!

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Charliemacdmv ,

     

    When you say if "Back" is empty, do you mean if there is no Back button on that screen? Else how will a Button be empty?

     

    Anyways, I think there is no way to detect if there is a Control on current screen or not. Alternatively, you can apply different variables on OnVisible of different screens, e.g.

    Screen1

    UpdateContext({Back: true})

    Screen2

    UpdateContext({Back: false})

     

    Now you can use the context variable Back for Visible of the Button as well as determining whether to go to another screen.

     

    Best regards,

  • Verified answer
    Charliemacdmv Profile Picture
    235 on at

    @v-jefferni Thanks for the reply. 

     

    I got it working with this. I have a variable that captures if the Param is blank. Then I use the code below for the back button. Works great.

    If(IsBlank(varItem),Back(),Navigate(Home))

     

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
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard