Buy now Customer Login

Online Manual / Configuration Files / Highlighting Invalid Fields

Command: highlightInvalidFields
Usage:

Allows you to have the script highlight invalid fields.

Arguments:

  • value="<0|1>"
    Set this to 0 (disabled) or 1 (enabled) if you would like to enable or disable highlighting invalid fields.

  • style="<CSS>"
    Allows you to specify a style for the highlighted fields.

Example:

highlightInvalidFields value="1" style="color: #CC0000;"

This example shows how to tell the script to highlight invalid fields with a red color. In order for this to work, you also need to edit your form field's labels. For example, we have Full Name which we would like highlighted if the user does not fill in this field:

...
<tr>
<td><font class="Full Name">Full Name:</font></td>
<td><input type="text" name="Full Name"></td>
</tr>
..

Notice how we have <font class="Full Name">Full Name:</font>, that's where the highlighting occurs. The script replaces class="Full Name" with style="color: #CC0000;".