LiveValidationCustom macro
Description
Validates a XObject property value using a custom remote XWiki document that should returns "true" when valid or "false" when not valid, based on the field value and the property reference.
Usage
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. |
against | Document reference of the document that will be AJAX requested to settle the validation. |
args | Additional QueryString passed over to the requested document with the property reference and the field value. |
failureMessage | Message to be used upon validation failure. |
Examples
Add the following lines to MyApp.MyAppSheet.
The LiveValidation.IsUniqueValidator is also provided in this extension and check that the property value is unique compared to all instances of the same XClass.