segue

segue(args)

This hook is called when a segue is happening.

As a quick primer, there are, at current, 3 different things which can happen after a successful form submission:

  • Display a thank you message
  • Display another form (aka Secondary ask)
  • Redirect to another page anywhere on the internet

We call the transition from one thing to another thing a segue. This callback is called when making that transition.

Note, it is NOT called in case 3 above because we have no control over another page on the internet.

It receives three arguments:

  • formviews - The form views in question
  • thank - boolean, true if this is a thank you message, false if it is not.
  • calling_tag - The view in question.