| Most configuration details
are in the script, however, here are a few more.
Changing
it to suit your form:
1) Look for the name of
your form, it will look something like this: ">
2) In the script, change
this part of the script
if
((document.onlineform.name.value=="")
to your form name.
3) Now you have if
((document.thisismyformname.name.value=="")
, change this for each entry.
Adding
Your checks:
This is done with this part
of the script:
if
((document.thisismyformname.name.value=="")
this will currently check
to make sure a field called "NAME" is filled in. If you have a field name
called "PhoneNumber", then you change it like this.
if
((document.thisismyformname.PhoneNumber.value=="")
Adding
More Checks:
Add
more checks like this. IE, for a field name called "address", you would
add this:
{
if
((document.thisismyformname.name.value=="")||
(document.thisismyformname.phone.value=="")||
(document.thisismyformname.address.value=="")||
(document.thisismyformname.email.value==""))
{
Adding
The Second Part to your Form:
Next
you have to add this to your form: onSubmit="return
validateform( this.form )"
If
your form looks similar to this:
add
it like this:
---------------------
|