LiveValidation Macro


Description

Provides client-side live validation of a single XObject based on the validation expressions and messages defined in its XClass. The form will not be submitted to the server until all fields are properly validated. The validation message are added next to the validated field, in a span element marked with LV_validation_message and LV_invalid classnames. Once validated, the span is emptied and receive a LV_valid classname. Moreover, all validated fields receive an additional xlivevalidation classname.

This macro uses Validation.Format from the LiveValidation Javascript framwork with the regular expression from each property in the object XClass and shows the validation message in case of failure.

Usage

{{livevalidation form='formId' object='objectReference' /}}
 Param  Description
 form  Unique ID of the form html element that will be validated before submission (Optional, default to inline).
 object  Object reference of the XObject to be validated.

Examples

Add the following lines to MyApp.MyAppSheet.

{{livevalidation object='MyApp.MyAppClass[0]' /}}

  

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