== Generating Client-Side Validations == There are two methods that you'll use when generating client-side validations: === The getInitializationScript() Method === Use the ''getInitializationScript()'' method to return JavaScript code to set up client-side validations. You only need to generate this script once per page, and can include links for the JavaScript libraries required by the framework. ==== Arguments ==== It accepts the following arguments: * ''JSLib (optional)'' The name of the JavaScript implementation to be used to generate the script. ** If not passed in the JSLib that is specified in the ''DefaultJSLib'' key of the [[ValidateThisConfig Struct]] will be used. ** Note that as there is currently only one JS implementation available, it is currently unnecessary to pass this argument into this method. * ''JSIncludes (optional)'' A boolean indicating whether to return the JS statements that include the libraries required by the framework. ** This exists to allow a developer to generate the setup script, but still manually add their own