\UserDefinedForm
Synopsis
class UserDefinedForm
extends Page
{
- // members
- private static string $icon = 'userforms/images/sitetree_icon.png';
- private static string $description = 'Adds a customizable form.';
- private static $required_identifier = NULL;
- private static string $email_template_directory = 'userforms/templates/email/';
- private static bool $upgrade_on_build = true;
- private static array $extensions = ;
- private static array $db = ;
- private static array $defaults = ;
- private static array $has_many = ;
- private static array $casting = ;
- private static string $error_container_id = 'error-container';
- private static boolean $enable_are_you_sure = true;
- private static bool $recipients_warning_enabled = false;
- protected array $fieldsFromTo = ;
- // methods
- public FieldList getCMSFields()
- public ArrayList FilteredEmailRecipients()
- public FieldList getFormOptions()
- public string getErrorContainerID()
- public void requireDefaultRecords()
- public void getCMSValidator()
Hierarchy
Extends
- Page
Members
private
- $casting — array
- $db — array
- $defaults — array
- $description — string
- $email_template_directory — string
- $enable_are_you_sure
—
boolean
The configuration used to determine whether a confirmation message is to appear when navigating away from a partially completed form. - $error_container_id
—
string
Error container selector which matches the element for grouped messages - $extensions
—
array
Built in extensions required by this page - $has_many — array
- $icon — string
- $recipients_warning_enabled — bool
- $required_identifier — string
- $upgrade_on_build
—
bool
Should this module automatically upgrade on dev/build?
protected
- $fieldsFromTo
—
array
Temporary storage of field ids when the form is duplicated.
Methods
public
- FilteredEmailRecipients() — Allow overriding the EmailRecipients on a {@link DataExtension} so you can customise who receives an email.
- getCMSFields()
- getCMSValidator() — Validate formfields
- getErrorContainerID() — Get the HTML id of the error container displayed above the form.
- getFormOptions() — Custom options for the form. You can extend the built in options by using {@link updateFormOptions()}
- requireDefaultRecords()