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

  

About the website contents

All of the information on this WebSite is for education purposes only. The place to get specific medical advice, diagnoses, and treatment is your doctor. Use of this site is strictly at your own risk. If you find something that you think needs correction or clarification, please let us know at: 

Send a email: info@cdlsWorld.org