Custom behaviours
Forms can be manipulated to behave in different ways depending on the content of the form that is being submitted. To do this you need to set up a different custom behaviour for each action. Initially the form properties shows the ‘Default behaviour’. This is how the form responds when there are no custom behaviours set, or the form content doesn’t match any custom behaviour parameters, so the details in the blue box should always be defined for this.
To create a custom behaviour use the drop down box labelled ‘Currently editing’ to select ‘Custom behaviour #1’. Two rows of extra options will appear and the blue box of properties will refresh to show you blank fields. You can now set the conditions of this behaviour along with the relevant actions to be taken.
The conditions for this behaviour are set by indicating which fields should be looked at when the form is submitted and evaluating these against their individual conditions. This is done by selecting the relevant field from the first drop down box (this is a list of all fields you have created when setting up your form), the condition type from the second and appropriate text in the text field. You can apply up to 5 conditions for each custom behaviour. The relevant actions to be taken if these conditions match the form content is then specified in the blue box below the conditions in the same way as the default behaviour.
For example, if you wanted all forms that contained a sales enquiry to be emailed to sales@yourwebsite.com you would enter the following information:
In this instance anyone who selected ‘Sales enquiry’ from the drop down box on the form labelled ‘Type of enquiry’ would have their form data sent to sales@yourwebsite.com, if they had selected any other option from the drop down list the form would have used the default behaviour instead.
Note: You must be careful when entering the condition text as any spelling or typing mistakes can cause the condition to become invalid e.g. Sales enquiry wouldn’t produce the same results as sales nquiry or “Sales enquiry”.
You can also set a behaviour to only accept the form contents if a certain condition is met, otherwise it will display a custom message to the user. For example you could specify that if anyone selects the ‘Support enquiry’ option and submits the form it could display a message to the user saying “Please contact our support desk on 0800 123456”. This is set up by deselecting the ‘Accept the form?’ box then entering the custom message in the box that appears.
Up to twenty custom behaviours can be set on a form, along with the default behaviour. Each behaviour can be modified to send to different email addresses, different databases, display different success text, direct the user to a different page or send the user a different email depending on how they filled in the form.




