Previous Page

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

JoshuaW
Ebase User
Posts: 21
Joined: Fri Oct 24, 2008 1:55 pm
Location: WFH, Oxfordshire, UK
Contact:

Previous Page

#1

Postby JoshuaW » Tue Nov 05, 2013 1:27 pm

Hi

Would like to know how to set Previous Page like

Code: Select all

set nextPage = PAGE_1;
The reason for this, is because I'm using Snapshot manager.
When a user saves the form, the user gets an email with link, linking back to the form with special key.

When clicked, the snapshot retrieves all the data including the Last_page visited.

Upon successful retrieval, the user is directed to the last_page visited, so that the user can carry on finishing the form.

ie
PAGE_1
PAGE_2
PAGE_3
CONFIRMATION
SAVE_AND_RESTORE

The problem lies with the previous button control. When the PAGE_1 is first loaded, the script checks for URL parameter with key, if key is there, the user is redirected to SAVE_AND_RESTORE where JS is worked on. On successful fetch, the user is sent to ie. PAGE_2, but when navigating back on PAGE_2, the user is taken to the SAVE_AND_RESTORE page, when it should have been PAGE_1.

Which is why I wanted to know how to set previousPage to the last_page is the previous page in the page sequence, not the SAVE_AND_RESTORE page.

Hopefully this makes sense.

Many thanks
Josh
0 x

JoshuaW
Ebase User
Posts: 21
Joined: Fri Oct 24, 2008 1:55 pm
Location: WFH, Oxfordshire, UK
Contact:

#2

Postby JoshuaW » Tue Nov 05, 2013 1:51 pm

The only work-around I could think of is applying Previous Button Event script, ensure all page back go to respective page.

Is there another workaround?
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#3

Postby Jon » Tue Nov 05, 2013 2:37 pm

Josh,

You can't set previous page - it always points to the page the user has just come from, in all circumstances. The only work around I can think of is not to use a Previous Page Control - instead use your own button and do a go to page.

Regards
Jon
0 x


Who is online

Users browsing this forum: No registered users and 13 guests