View models
Renderables are converted to so-called view models, which is done by dedicated view model builders. Each view model represents the default view implementation of a renderable, based on the Fluid templates shipped by EXT:form. Note that some renderables might be represented by various view model implementations, based on specific aspects outlined below.
Tip
You can also create custom view model builders by implementing the
\CPSIT\ interface.
The following renderables are currently supported by this extension:
Supported renderables
AdvancedPassword
- (a)
ViewModel Collection -
Contains view models, reflecting both password fields:
Name Type Description passwordField ViewHelper Contained View Model Contains result from <formvh:view helper invocation for password field.form. password> confirmationField (a) ViewHelper Contained View Model Result from <formvh:view helper invocation for password confirmation field.form. password> (b) FormField View Model Combination of confirmation label and result from <formvh:view helper invocation for password confirmation field.form. password>
Checkbox
- (a)
ViewHelper Contained View Model - Contains result from
<formvh:view helper invocation.form. checkbox>
ContentElement
- (a)
ViewHelper Contained View Model - Contains result from
<f:view helper invocation.c Object> - (b)
SimpleView Model - If configured content element UID is invalid.
CountrySelect
- (a)
ViewHelper Contained View Model - Contains result from
<formvh:view helper invocation.form. country Select>
Fieldset
- (a)
StandaloneTag View Model - Contains the
<fieldset>tag with class name(s) and additional attributes.
FileUpload ,
ImageUpload
- (a)
ViewModel Collection -
If uploaded resource can be resolved. Contains three view models:
Name Type Description uploadField ViewHelper Contained View Model Contains result from <formvh:view helper invocation for password field.form. uploaded Resource> resourcePointer Fields ViewofModel Collection StandaloneTag View Model Optional. References hidden <input>fields with resource pointers, if available.uploadsViewofModel Collection FileResource View Model References file uploads, which contain one or two child view models:
resource: Instance ofFileorReference Pseudo.File Reference delete: Optional and TYPO3 >= v14 only.Checkbox Formwith result fromField View Model <formvh:view helper invocation, which allows to delete an existing file upload on submit.form. upload Delete Checkbox>
- (b)
ViewHelper Contained View Model - If uploaded resource cannot be resolved. Contains result from
<formvh:view helper invocation.form. uploaded Resource>
Form
- (a)
ViewHelper Contained View Model - Contains result from
<formvh:view helper invocation.form>
MultiCheckbox
- (a)
ViewModel Collection -
Contains view models which reflect all available options, each as one of:
Type Description FormField View Model If label is available. Contains a combination of label and result from <formvh:view helper invocation.form. checkbox> ViewHelper Contained View Model If associated label is invalid or missing. Contains result from <formvh:view helper invocation.form. checkbox>
Password
- (a)
ViewHelper Contained View Model - Contains result from
<formvh:view helper invocation.form. password>
RadioButton
- (a)
ViewModel Collection -
Contains view models which reflect all available options, each as one of:
Type Description FormField View Model If label is available. Contains a combination of label and result from <formvh:view helper invocation.form. radio> ViewHelper Contained View Model If associated label is invalid or missing. Contains result from <formvh:view helper invocation.form. radio>
SingleSelect ,
MultiSelect
- (a)
ViewHelper Contained View Model - Contains result from
<formvh:view helper invocation. Includes availableform. select> <option>tags as children of typeStandalone.Tag View Model
StaticText
- (a)
FormField View Model - If label is available. Contains a combination of label and
<p>tag. - (b)
StandaloneTag View Model - If label is invalid or missing. Contains
<p>tag with class and text.
Textarea
- (a)
ViewHelper Contained View Model - Contains result from
<formvh:view helper invocation.form. textarea>
Text,
Date,
Email,
Number,
Telephone,
Url
- (a)
ViewHelper Contained View Model - Contains result from
<formvh:view helper invocation.form. textfield>
Unsupported renderables
DatePicker
This form element was deprecated in TYPO3 v14.2 and is therefore not supported by this extension.