Would like to know how to set Previous Page like
Code: Select all
set nextPage = PAGE_1;
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