This reference was automatically generated from code on 2021-03-22
This object describes a single editable value in a form. Usually this is instantiated by the fusion prototype Neos.Fusion.Form:Definition.Field and can be accessed as field in the fusion context.
Implemented in: Neos\Fusion\Form\Domain\Field
Return (string[]) The current value of the field converted to an array of strings. Only used in multifields.
Return (mixed|null) The current value of the field
Return (string) The current value of the field converted to string for being used as html field value
Return (Result|null) The current result of the field if the field was already submitted
Return (mixed|null) The target value that is assigned to the field
Return (string) The target value of the field converted to string for being used as html field value
Return (bool) True if the current value of the field is not null
Return (bool) Return whether the field has validation errors
Return (bool) True if the field is configured as multiple
Create and return a copy of this field with alternate value This is used to render multiple checkboxes or radio in a single field container
targetValue
(mixed|null, optional)
Return (Field)
This object describes a the main properties of a form. Usually this is instantiated by the fusion prototype Neos.Fusion.Form:Definition.Form and can be accessed as form in the fusion context.
Implemented in: Neos\Fusion\Form\Domain\Form
NeosFusionFormDomainForm.calculateHiddenFields(content)
Calculate the hidden fields for the given form content as key-value array.
This works by parsing the given content and detecting all html fields. This allow to support fields that are rendered withoput using the Neos.Fusion.Form prototypes and to calculate hidden identify and trusted properties for those fields aswell.
content
(string, optional) The form html body, usually renderd via afx
Return (string[]) hiddenFields as key value pairs
Return (mixed) The data that was bound to the form, usually a DataStructure
Return (string|null) The encoding for the form
Return (string|null) The http method for submitting the form
Return (string|null) The namespace prefix that was assigned or determined from the request
Return (ActionRequest|null) The ActionRequest the form is rendered with
Return (Result) The result for the whole form, can be used to render validation messahes in a central place
Return (mixed[]|null) The previously submitted values when validation errors prevented processing the data
Return (string|null) The target uri for the form, usually defined as Neos.Fusion:UriBuilder
Return (bool) Return whether the form had validation errors in a previous submit
This object describes a single target value for a form field. Usually this is instantiated by the fusion prototype Neos.Fusion.Form:Definition.Option and can be accessed as option in the fusion context.
Implemented in: Neos\Fusion\Form\Domain\Option
Return (mixed) The target value of the option
Return (string) The target value of the option converted to string for being used as html option value