:navigation-title: condition.form.hasValidator
.. include:: /Includes.rst.txt

.. _fluidtypo3-vhs-condition-form-hasvalidator:

==========================================================================
condition.form.hasValidator ViewHelper `<vhs:condition.form.hasValidator>`
==========================================================================


Form: Field Has Validator?
==========================

Takes a property (dotted path supported) and renders the
then-child if the property at the given path has any


.. _fluidtypo3-vhs-condition-form-hasvalidator_arguments:

Arguments
=========


.. _condition.form.hasvalidator_then:

then
----

:aspect:`DataType`
   mixed

:aspect:`Required`
   false
:aspect:`Description`
   Value to be returned if the condition if met.

.. _condition.form.hasvalidator_else:

else
----

:aspect:`DataType`
   mixed

:aspect:`Required`
   false
:aspect:`Description`
   Value to be returned if the condition if not met.

.. _condition.form.hasvalidator_property:

property
--------

:aspect:`DataType`
   string

:aspect:`Required`
   true
:aspect:`Description`
   The property name, dotted path supported, to determine required.

.. _condition.form.hasvalidator_validatorname:

validatorName
-------------

:aspect:`DataType`
   string

:aspect:`Required`
   true
:aspect:`Description`
   The name of the validator that must exist for the condition to be true.

.. _condition.form.hasvalidator_object:

object
------

:aspect:`DataType`
   mixed

:aspect:`Required`
   true
:aspect:`Description`
   Optional object - if not specified, grabs the associated form object.
