UserDefinedForm_Controller
class UserDefinedForm_Controller extends Page_Controller (View source)
Controller for the UserDefinedForm page type.
Properties
Methods
Using $UserDefinedForm in the Content area of the page shows where the form should be rendered into. If it does not exist then default back to $Form.
Get the form for the page. Form can be modified by calling updateForm() on a UserDefinedForm extension.
Generate the javascript for the conditional field show / hiding logic.
This action handles rendering the "finished" message, which is customizable by editing the ReceivedFormSubmission template.
Details
init()
No description
array
index()
Using $UserDefinedForm in the Content area of the page shows where the form should be rendered into. If it does not exist then default back to $Form.
int
ping()
Keep the session alive for the user.
Forms
Form()
Get the form for the page. Form can be modified by calling updateForm() on a UserDefinedForm extension.
void
generateConditionalJavascript()
Generate the javascript for the conditional field show / hiding logic.
Redirection
process(array $data, Form $form)
Process the form that is submitted through the site
{\UserForm::validate()} for validation step prior to processing
ViewableData
finished()
This action handles rendering the "finished" message, which is customizable by editing the ReceivedFormSubmission template.
protected string
buildWatchJS(array $watch)
Outputs the required JS from the $watch input