Element Details: Validation.Javascript
 Back


Available in: Logi Info Source code name: Validation.Javascript

Validates input by calling a custom javascript function.

Set JavascriptFunction to a custom function found in the report. It will be run by the browser. When the custom script detects an error, it should call throw() to trigger display of the error message.

If the validation does not pass, the ErrorMsg gets displayed in a message box. ErrorMsg can contain a special string "{error}". {error} gets replaced by throw() function's expression parameter.






ATTRIBUTES

Click attribute Name to drill down for more information.

NamePossible ValuesDescription
Class
UserDefined
Sets the Cascading Style Sheet class used by the element. When set, this class will also be used by all child elements that don't have their own class. The class should be defined in the report's style sheet file.
ErrorMsg
UserDefined
The message that is displayed if the user fails to supply a valid value.
JavascriptFunction
UserDefined
A single javascript function, with or without parameters.



PARENT ELEMENTS

Click element to drill down for more information.

Date Picker
Input Combo List
Input Date
Input Email
Input File Upload
Input Password
Input Radio Buttons
Input Select List
Input Telephone
Input Text
Input Text Area
Input Time


CHILD ELEMENTS

Click element to drill down for more information.



 Back to top


 Chart Debug