Warning: This feature has been deprecated and will be removed, please use Form Builder instead.
This contact form has been created using a template and uses jQuery to POST data to the MetaScale /form controller. This allows the template designer to markup the form however they want and still make use of server-side validation.
These forms are used in conjunction with the CMS Form module which is used to configure the subject of the email, recipients, message to admin and autoresponse back to the user.
Server-side validation errors are returned in the JSON response and can be handled using jQuery (e.g. highlight invalid fields). Most Zend_Validate_* classes are available when using the naming convention below e.g.:
A field named "email-EmailAddress" will be validated using Zend_Validate_EmailAddress.
A field named "telephone-Telephone" will be validated with a custom Essential_Validate_Telephone class.
A field named "message-NotEmpty" will be validate using Zend_Validate_NotEmpty.
View source to see the HTML and jQuery.
$nodes = $this->node->getCollection()->getRelated();
No related nodes for this node