\UserDefinedForm_Controller
Controller for the {@link UserDefinedForm} page type.
Synopsis
class UserDefinedForm_Controller
extends Page_Controller
{
- // members
- private static string $finished_anchor = '#uff';
- private static array $allowed_actions = ;
- // methods
- public void init()
- public array index()
- public int ping()
- public Forms Form()
- public void generateConditionalJavascript()
- public Redirection process()
- private ArrayData getMergeFieldsMap()
- public ViewableData finished()
- protected string buildWatchJS()
Hierarchy
Extends
- Page_Controller
Members
private
- $allowed_actions
- $finished_anchor
Methods
private
- getMergeFieldsMap() — Allows the use of field values in email body.
protected
- buildWatchJS() — Outputs the required JS from the $watch input
public
- Form() — Get the form for the page. Form can be modified by calling {@link updateForm()} on a UserDefinedForm extension.
- finished() — This action handles rendering the "finished" message, which is customizable by editing the ReceivedFormSubmission template.
- generateConditionalJavascript() — Generate the javascript for the conditional field show / hiding logic.
- 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.
- init()
- ping() — Keep the session alive for the user.
- process() — Process the form that is submitted through the site