Documentation · ViewHelper reference

XSD schema file | vhs 1.8.3

Form / HasValidatorViewHelper

Alias of TxVhsViewHelpersIfForm_HasValidatorViewHelper for backwards compatibility.

Will be removed in 2.0

  • Tag usage example

    <v:form.hasValidator then="[mixed]" else="[mixed]" property="NULL" validatorName="NULL" object="[TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface]">
    	<!-- tag content - may be ignored! -->
    </v:form.hasValidator>
  • Inline usage example

    {v:form.hasValidator(then: [mixed], else: [mixed], property: 'NULL', validatorName: 'NULL', object: [TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface])}

Arguments

Argument Description Type
else

Value to be returned if the condition if not met.

mixed
object

Optional object - if not specified, grabs the associated form object

TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface
property

The property name, dotted path supported, to determine required

string
then

Value to be returned if the condition if met.

mixed
validatorName

The class name of the Validator that indicates the property is required

string
Required attribute

Revision history