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.

The following renderables are currently supported by this extension:

Supported renderables 

AdvancedPassword  

(a) ViewModelCollection

Contains view models, reflecting both password fields:

Name Type Description
passwordField ViewHelperContainedViewModel Contains result from <formvh:form.password> view helper invocation for password field.
confirmationField (a) ViewHelperContainedViewModel Result from <formvh:form.password> view helper invocation for password confirmation field.
(b) FormFieldViewModel Combination of confirmation label and result from <formvh:form.password> view helper invocation for password confirmation field.

Checkbox  

(a) ViewHelperContainedViewModel
Contains result from <formvh:form.checkbox> view helper invocation.

ContentElement  

(a) ViewHelperContainedViewModel
Contains result from <f:cObject> view helper invocation.
(b) SimpleViewModel
If configured content element UID is invalid.

CountrySelect  

(a) ViewHelperContainedViewModel
Contains result from <formvh:form.countrySelect> view helper invocation.

Fieldset  

(a) StandaloneTagViewModel
Contains the <fieldset> tag with class name(s) and additional attributes.

FileUpload , ImageUpload  

(a) ViewModelCollection

If uploaded resource can be resolved. Contains three view models:

Name Type Description
uploadField ViewHelperContainedViewModel Contains result from <formvh:form.uploadedResource> view helper invocation for password field.
resourcePointerFields ViewModelCollection of StandaloneTagViewModel Optional. References hidden <input> fields with resource pointers, if available.
uploads ViewModelCollection of FileResourceViewModel

References file uploads, which contain one or two child view models:

  • resource: Instance of FileReference or PseudoFileReference.
  • deleteCheckbox: Optional and TYPO3 >= v14 only. FormFieldViewModel with result from <formvh:form.uploadDeleteCheckbox> view helper invocation, which allows to delete an existing file upload on submit.
(b) ViewHelperContainedViewModel
If uploaded resource cannot be resolved. Contains result from <formvh:form.uploadedResource> view helper invocation.

Form  

(a) ViewHelperContainedViewModel
Contains result from <formvh:form> view helper invocation.

Hidden  

(a) ViewHelperContainedViewModel
Contains result from <formvh:form.hidden> view helper invocation.

MultiCheckbox  

(a) ViewModelCollection

Contains view models which reflect all available options, each as one of:

Type Description
FormFieldViewModel If label is available. Contains a combination of label and result from <formvh:form.checkbox> view helper invocation.
ViewHelperContainedViewModel If associated label is invalid or missing. Contains result from <formvh:form.checkbox> view helper invocation.

Password  

(a) ViewHelperContainedViewModel
Contains result from <formvh:form.password> view helper invocation.

RadioButton  

(a) ViewModelCollection

Contains view models which reflect all available options, each as one of:

Type Description
FormFieldViewModel If label is available. Contains a combination of label and result from <formvh:form.radio> view helper invocation.
ViewHelperContainedViewModel If associated label is invalid or missing. Contains result from <formvh:form.radio> view helper invocation.

SingleSelect , MultiSelect  

(a) ViewHelperContainedViewModel
Contains result from <formvh:form.select> view helper invocation. Includes available <option> tags as children of type StandaloneTagViewModel.

StaticText  

(a) FormFieldViewModel
If label is available. Contains a combination of label and <p> tag.
(b) StandaloneTagViewModel
If label is invalid or missing. Contains <p> tag with class and text.

Textarea  

(a) ViewHelperContainedViewModel
Contains result from <formvh:form.textarea> view helper invocation.

Text , Date , Email , Number , Telephone , Url  

(a) ViewHelperContainedViewModel
Contains result from <formvh:form.textfield> view helper invocation.

Unsupported renderables 

DatePicker  

This form element was deprecated in TYPO3 v14.2 and is therefore not supported by this extension.