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

  

Über den Inhalt der Website

Alle Informationen auf dieser WebSite dienen ausschließlich der Aufklärung. Der richtige Ort, um spezifischen medizinischen Rat, Diagnosen und Behandlungen zu erhalten, ist Ihr Arzt. Die Nutzung dieser Website erfolgt ausschließlich auf eigene Gefahr. Wenn Sie etwas finden, das Ihrer Meinung nach einer Korrektur oder Klärung bedarf, lassen Sie es uns bitte wissen: 

Senden Sie eine E-Mail: info@cdlsWorld.org