Page 1 of 1
How to restrict from a particular page to some other particular page on mobile "Back Button"?
Posted: Fri May 16, 2014 1:40 pm
by Himanshu
Hello Team,
I have two pages on my app. One "Home Page" and second "Log-In Page". On mobile's back button at Home Page, I want to restrict it to go to Log-In page.
How can I do it?
How to restrict from a particular page to some other particular page on mobile "Back Button"?
Posted: Fri May 16, 2014 4:03 pm
by Evgene Karachevtsev
Hello,
Please create empty javascript function for event "Backbutton"
How to restrict from a particular page to some other particular page on mobile "Back Button"?
Posted: Sat May 17, 2014 9:55 am
by Himanshu
But this will restrict BackButton to all the pages. I don't want to do like that.
I have so many pages in my app, but just want to do some logic on these two pages. Please be more specific in your answer.
How to restrict from a particular page to some other particular page on mobile "Back Button"?
Posted: Mon May 19, 2014 7:34 am
by Evgene Karachevtsev
Hello,
If you create empty event "Backbutton" on "Home Page" it will prevent navigation with back button on mobile phone only for this page.
How to restrict from a particular page to some other particular page on mobile "Back Button"?
Posted: Mon May 19, 2014 9:14 am
by Himanshu
But think If I am on "User Page" and now I navigate to "Home Page", then on "Home Page" I click mobile's Back Button, then it should navigate to "User Page". will this happen with your answer too?
How to restrict from a particular page to some other particular page on mobile "Back Button"?
Posted: Mon May 19, 2014 10:57 am
by Evgene Karachevtsev
Hello,
With empty javascript function on event "Backbutton" on "Home Page" you won't navigate to page "User Page"