LiveValidationConfirmation Macro


Validates that another field of the form match the value of an XObject property.

The validation is put on the matching field, not on the property itself to give a proper behavior. The match argument of this macro does not match the match argument of the underlying LiveValidation framework, but is the validated input field. The match argument of the underlying LiveValidation framework is the property.

This validation does not imply the value is not empty, it is therefore suggested to also add a presence validation for the same property, else the form could be validated with both field empty.

Usage

{{livevalidationConfirmation form="formId" property="propertyReference" match="fieldId" failureMessage="A message to display when validation fail" /}}
 Param  Description
 form  Unique ID of the form html element that contains the validated field (Optional, default to inline).
 property  Property reference of the field to be validated.
 match  Identifier of the field that should match the property value.
 failureMessage  Message to be used upon validation failure.

Examples

Add an identified volatile confirmation field to the form and the following lines to MyApp.MyAppSheet.

{{livevalidationConfirmation property='MyApp.MyAppClass[0].myprop' match='fieldId' failureMessage='This field should match myprop.' /}}
 

Sobre o conteúdo do sítio web

Toda a informação contida neste WebSite é apenas para fins educativos. O local para obter aconselhamento médico específico, diagnósticos e tratamento é o seu médico. A utilização deste site é estritamente por sua conta e risco. Se encontrar algo que considere necessário corrigir ou esclarecer, por favor informe-nos em: 

Envie um e-mail: info@cdlsWorld.org