Note that this refers to the general template of the form (the one that is in the /templates folder)
Note that only the folder of the template you wish to use needs to be specified. Inside the folder you must have the template.xtpl file which will be automatically used
Appends an error message to an error block's error messages
You will need to use this method when you do custom validation in order to be able to send any error message to one of the form's error blocks
Parameters:
string
$errorBlock
The name of the error block to append the error message to
string
$errorMessage
The error message to append
string
$bindToControl
(Optional) The ID of the control to bind the error to.
This has no importance unless you are relying on the script to automatically generate the form's output for you. If you do so, than you MUST bind the error message to a control or the script will not know where to show the error in the form!