<?xml version="1.0" encoding="UTF-8"?>
<!--
THIS FILE DESCRIBES THE DATA TO BE EDITED
THE TAG NAMES SHOULD BE FAIRLY SELF EXPLANATORY
FORM TYPES SUPPORTED:
TEXT: Text input field
TEXTAREA: Textarea input field
SELECT: Selection list
MULTISELECT: Multiple selection list
CHECKBOX: Checkboxes
RADIO: Radio buttons
-->
<form-config>
<var name="username" type="text"> <!-- NAME FOR FORM FIELD AND INPUT TYPE -->
<description>User Name</description>
<html-display-option name="class" value="formText"/>
<html-display-option name="size" value="20"/>
<html-display-option name="maxlength" value="25"/>
<validation-regexp>/^\w+$/</validation-regexp>
<validation-message>No spaces allowed.</validation-message>
</var>
<var name="firstName" type="text">
<description>First Name</description>
<html-display-option name="class" value="formText"/>
<html-display-option name="size" value="20"/>
<html-display-option name="maxlength" value="25"/>
<validation-regexp>/^[a-zA-Z]+$/</validation-regexp>
<validation-message>No numbers or spaces.</validation-message>
</var>
<var name="LastName" type="text">
<description>Last Name</description>
<html-display-option name="class" value="formText"/>
<html-display-option name="size" value="20"/>
<html-display-option name="maxlength" value="25"/>
<validation-regexp>/^[a-zA-Z]+$/</validation-regexp>
<validation-message>No numbers or spaces</validation-message>
</var>
<var name="email" type="text">
<description>Email Address</description>
<html-display-option name="class" value="formText"/>
<html-display-option name="size" value="20"/>
<html-display-option name="maxlength" value="25"/>
<validation-regexp>/^[\w\d]+@[a-zA-Z0-9\.]+$/</validation-regexp>
<validation-message>A valid email address required.</validation-message>
</var>
</form-config> |