SilverStripe\UserForms\Form\UserForm
Synopsis
class UserForm
extends Form
{
- // members
- private static string $button_text = '';
- // methods
- public void __construct()
- public void restoreFormState()
- public string getLastEdited()
- public bool getDisplayErrorMessagesAtTop()
- public ArrayList getSteps()
- public FieldList getFormFields()
- public FieldList getFormActions()
- public RequiredFields getRequiredFields()
- public array getAttributes()
- public string getButtonText()
- protected array getEmailRecipientRequiredFields()
Hierarchy
Extends
- SilverStripe\Forms\Form
Tasks
Line | Task |
---|---|
143+ | Make form actions editable via their own field editor. |
Members
private
Methods
protected
- getEmailRecipientRequiredFields() — Push fields into the RequiredFields array if they are used by any Email recipients.
public
- __construct()
- getAttributes() — Override some we can add UserForm specific attributes to the form.
- getButtonText()
- getDisplayErrorMessagesAtTop()
- getFormActions() — Generate the form actions for the UserDefinedForm. You can manipulate these by using {@link updateFormActions()} on a decorator.
- getFormFields() — Get the form fields for the form on this page. Can modify this FieldSet by using {@link updateFormFields()} on an {@link Extension} subclass which is applied to this controller.
- getLastEdited() — Used for partial caching in the template.
- getRequiredFields() — Get the required form fields for this form.
- getSteps() — Return the fieldlist, filtered to only contain steps
- restoreFormState()