Skip to main content

Stop form redirect upon success (or customize with js)

I have a page with a form that I've added using a subpage. In particular this is an endorsement form, though I will want to achieve the same effect with all of the forms I am working on.

How can I stop a form from redirecting after it is successfully submitted? The following example accepts the form input and then shows a modal window.

Example: http://www.rootstrikers.org/#!/project/real-time-disclosure

Alternatively, I might be able to get away with redirecting to the parent page (not the sub page) after success. This would have to be assigned by javascript I assume, since I could be using this sub page on various parent pages.

Note: I've already tried to override the hidden form fields return_to and page_id. This did not seem to work, instead only submitting the endorsement to the parent page. Essentially, it ends up getting lost because this is not an endorsement page, but a basic page calling upon the endorsement subpage. I need all the endorsements to get collected into one endorsement page, but each page that has the endorsement form on it to be able to redirect to itself, not to the endorse page itself.

Official response from

The website you're referencing is not built on NationBuilder.

You can create an action chain on a NationBuilder website by indicating the page a person should land on after taking an action. The option looks like this:

create an action chain on a NationBuilder website

and exists in the third tab of action pages. For a donation page, this is in Donation settings > Basics.

Our theme documentation provides more resources on customizing websites built on NationBuilder.

Share this post

Showing 5 reactions

How would you tag this suggestion?
Please check your e-mail for a link to activate your account.