Toggle menu

Multipage Forms and Branching

5. Add logic to the back buttons

Just like the continue buttons, the back links also need to be able to skip over pages.

Decision page

The back link on this page doesn't need a function, it will always take the user back to the first page.

Name page

This back link doesn't need a function to set the page - the page to the left of it in the forms designer is the one we want users to go back to.

Reference number page

The bank link on this page needs to skip over the name page and go back to the decision page. If it didn't the user would go "back" to the page asking for their name (because it's to the left of the current page in the forms designer), even though they didn't come from there.

Reference Back Navigation

Check page

When someone arrives at the final page they could have come via either the name page, or the reference number page. The back link needs some logic so they are sent back to the right place.

This works in exactly the same way as the continue button at the start of the branching section. The function looks up what the user picked in the radio button group and directs them back to the appropriate page:

Decision Continue Button

Last modified on 8 June 2022

Share this page

Facebook icon Twitter icon email icon

Print

print icon