Form.uploadDeleteCheckbox ViewHelper <formvh:form.uploadDeleteCheckbox> 

ViewHelper which renders a checkbox for file deletion in EXT:form.

This ViewHelper is similar to Extbase's UploadDeleteCheckboxViewHelper but adapted for the EXT:form context. It renders a checkbox that, when checked, marks the associated file for deletion on form submission.

Example usage:

<formvh:form.uploadDeleteCheckbox
    property="{element.identifier}"
    fileReference="{file}"
    fileIndex="{iterator.index}"
/>
Copied!

Scope: frontend

Go to the source code of this ViewHelper: Form\UploadDeleteCheckboxViewHelper.php (GitHub).

Arguments

The following arguments are available for the form.uploadDeleteCheckbox ViewHelper:

additionalAttributes

additionalAttributes
Type
array
Additional tag attributes. They will be added directly to the resulting HTML tag.

aria

aria
Type
array
Additional aria-* attributes. They will each be added with a "aria-" prefix.

data

data
Type
array
Additional data-* attributes. They will each be added with a "data-" prefix.

fileIndex

fileIndex
Type
int
Default
0
Index of the file in multiple upload context

fileReference

fileReference
Type
TYPO3\CMS\Extbase\Domain\Model\FileReference
Required
1
The file reference object

name

name
Type
string
Name of input tag

property

property
Type
string
Name of Object Property. If used in conjunction with <f:form object="...">, the "name" property will be ignored, while "value" can be used to specify a default field value instead of the object property value.

value

value
Type
mixed
Value of input tag