mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
3c1d81d014
API change: refactored Form() into getFormFields(), getFormActions(), getRequiredFields() ENHANCEMENT: added updateForm* extension hooks to allow customization of userforms BUGFIX: gave custom scripts their own ID to enable it to be blocked.
62 lines
1.4 KiB
YAML
62 lines
1.4 KiB
YAML
EditableOption:
|
|
option-1:
|
|
Name: Option1
|
|
Title: Option 1
|
|
Sort: 1
|
|
|
|
option-2:
|
|
Name: Option2
|
|
Title: Option 2
|
|
Sort: 2
|
|
|
|
department-1:
|
|
Name: dept1
|
|
Title: sales@example.com
|
|
|
|
department-2:
|
|
Name: dept2
|
|
Title: accounts@example.com
|
|
|
|
EditableTextField:
|
|
basic-text:
|
|
Name: basic-text-name
|
|
Title: Basic Text Field
|
|
|
|
required-text:
|
|
Name: required-text-field
|
|
Title: Required Text Field
|
|
CustomErrorMessage: Custom Error Message
|
|
RightTitle: Right Title
|
|
Required: true
|
|
|
|
EditableRadioField:
|
|
radio-field:
|
|
Name: radio-option
|
|
Title: Radio Option
|
|
|
|
EditableDropdown:
|
|
basic-dropdown:
|
|
Name: basic-dropdown
|
|
Title: Basic Dropdown Field
|
|
Options: =>EditableOption.option-1, =>EditableOption.option-2
|
|
|
|
department-dropdown:
|
|
Name: department
|
|
Title: Department
|
|
Options: =>EditableOption.department-1, =>EditableOption.department-2
|
|
|
|
EditableCheckbox:
|
|
checkbox-1:
|
|
Name: checkbox-1
|
|
Title: Checkbox 1
|
|
|
|
EditableEmailField:
|
|
email-field:
|
|
Name: email-field
|
|
Title: Email
|
|
|
|
EditableCheckboxGroupField:
|
|
checkbox-group:
|
|
Name: check-box-group
|
|
Title: Check box group
|
|
Options: =>EditableOption.option-1, =>EditableOption.option-2 |