Actions Overview

Top  Previous  Next

The main purpose of Form Processor Pro is to perform some actions and process submitted data. In form configuration file you can specify the sequence and number of required actions such as sending one or several emails, database queries, redirects, etc. Like a validator, each action has a name and custom parameters. Parameters (arguments) can be static as well as dynamic, that depends on submitted data.

Basic actions:

The very basic action is “page”. It used to set the sequence and names of your form pages.

Example:
page = ../index.html
page = ../preview.html
page = ../thank-you.html

With such a configuration, after user filled the form on index.html, he/she will see parsed preview.html page and after that - thank-you.html

However, action's argument can be a template tag and depends on submitted data. Like
page = ../{#page_from_form#}

In this case forms applicant will see the page, which name was submitted in “page_from_form” field.

Action arguments may be very different, depends of action it does. It may be set of field names, SQL query, path to template, etc.