condition.form.isRequired ViewHelper <vhs:condition.form.isRequired>¶
Is Field Required ViewHelper (condition)¶
Takes a property (dotted path supported) and renders the then-child if the property at the given path has an
Arguments¶
then¶
- DataType
 mixed
- Required
 false
- Description
 Value to be returned if the condition if met.
else¶
- DataType
 mixed
- Required
 false
- Description
 Value to be returned if the condition if not met.
property¶
- DataType
 string
- Required
 true
- Description
 The property name, dotted path supported, to determine required.
validatorName¶
- DataType
 string
- Required
 true
- Description
 The name of the validator that must exist for the condition to be true.
object¶
- DataType
 mixed
- Required
 true
- Description
 Optional object - if not specified, grabs the associated form object.