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]' /}}

  

À propos du contenu du site Web

Toutes les informations contenues dans ce site Web sont uniquement destinées à des fins éducatives. Pour obtenir des conseils, des diagnostics et des traitements médicaux spécifiques, adressez-vous à votre médecin. L'utilisation de ce site est strictement à vos propres risques. Si vous trouvez quelque chose qui, selon vous, nécessite une correction ou une clarification, veuillez nous en faire part à l'adresse suivante : 

Envoyez un courriel : info@cdlsWorld.org