Defining the Follow-on Action


After the action is completed, we need to check the return value, as usual. If the action returns 'false,' we'll have an error message pop up.

Only if the action returns 'true,' will the page load. But wait! We're not done, and your menu won't work just yet.

Steps:

  1. Copy or enter the text from the right into the file
  2. Don't forget the closing if tag at the end of the page!

You may remember that we used the 'followonAction' tag in part 5 of this tutorial. The 'if' tag does exactly the same thing. You can choose which one is more intuitive for you.