class UserDefinedForm extends Page (View source)

Traits

Defines the user defined functionality to be applied to any DataObject

Provides extensions to this object to integrate it with standard config API methods.

Config options

extensions array

Built in extensions required by this page.

from  UserForm
required_identifier string from  UserForm
email_template_directory string from  UserForm
upgrade_on_build bool

Should this module automatically upgrade on dev/build?

from  UserForm
block_default_userforms_css bool

Set this to true to disable automatic inclusion of CSS files

from  UserForm
block_default_userforms_js bool

Set this to true to disable automatic inclusion of JavaScript files

from  UserForm
db array from  UserForm
defaults array from  UserForm
has_many array from  UserForm
cascade_deletes from  UserForm
cascade_duplicates from  UserForm
casting array from  UserForm
error_container_id string

Error container selector which matches the element for grouped messages

from  UserForm
enable_are_you_sure bool

The configuration used to determine whether a confirmation message is to appear when navigating away from a partially completed form.

from  UserForm
recipients_warning_enabled bool from  UserForm
non_live_permissions from  UserForm
icon_class string
description string
table_name string
controller_name string

Properties

protected array $fieldsFromTo

Temporary storage of field ids when the form is duplicated.

from  UserForm

Methods

public static 
config()

Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).

public
mixed
uninherited(string $name)

Gets the uninherited value for the given config option

public
populateDefaults()

No description

from  UserForm
public
getCMSFields()

No description

from  UserForm
public
getSubmissionsGridField()

No description

from  UserForm
public
EmailRecipient>
FilteredEmailRecipients($data = null, $form = null)

Allow overriding the EmailRecipients on a DataExtension so you can customise who receives an email.

from  UserForm
public
getFormOptions()

Custom options for the form. You can extend the built in options by using updateFormOptions()

from  UserForm
public
string
getErrorContainerID()

Get the HTML id of the error container displayed above the form.

from  UserForm
public
getCMSValidator()

Validate formfields

from  UserForm
void
SilverStripe() $ORM\HasManyList Submissions()

No description

Details

static Config_ForClass config()

Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).

Return Value

Config_ForClass

mixed uninherited(string $name)

Gets the uninherited value for the given config option

Parameters

string $name

Return Value

mixed

populateDefaults()

No description

FieldList getCMSFields()

No description

Return Value

FieldList

getSubmissionsGridField()

No description

EmailRecipient> FilteredEmailRecipients($data = null, $form = null)

Allow overriding the EmailRecipients on a DataExtension so you can customise who receives an email.

Converts the RelationList to an ArrayList so that manipulation of the original source data isn't possible.

Parameters

$data
$form

Return Value

EmailRecipient>

FieldList getFormOptions()

Custom options for the form. You can extend the built in options by using updateFormOptions()

Return Value

FieldList

string getErrorContainerID()

Get the HTML id of the error container displayed above the form.

Return Value

string

getCMSValidator()

Validate formfields

void SilverStripe() $ORM\HasManyList Submissions()

No description

Parameters

) $ORM\HasManyList Submissions(

Return Value

void