Client Validation Script

SOLO Server offers a client validation script which can be used to perform client side validation of form input fields. This can be used with Self Hosted Trial Tracking forms, as an example.

To use this script on a page external to SOLO Server, you must include it in you page using a client side include using the following html code:

<script language="javascript" src="http://secure.softwarekey.com/solo/client_validations.js"></script>

This script contains several functions for validating different data types as follows:

Each method has the same input parameters, (oElement, sFieldName, bRequired):

If a validation for a form element fails, an alert will be popped up to the user with a descriptive error message. Once the user OK's the alert, focus will then be given to field where validation failed.

The validation routines also test the length of the input against the maxlength of the form field if it is defined. This is due to the fact that some automated form fillers are able to populate a form field past it's maxlength. If maxlength is not defined, this checking is bypassed.