Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Validate form Custom error messages 1

Status
Not open for further replies.

sharonc

Programmer
Jan 16, 2001
189
0
0
US
Is it possible to create custom error messages instead of -Todays_datetime is required. I would like it to state the field: Todays Date/time must contain data
 
I know how to use the validate form in Dreamweaver, but I don't know where to enter my custom error messages. Can you elaborate on this a little more?
 
insert your form objects
-go to Behaviaros--Validate FOrm
look at the code generated
Code:
function MM_validateForm() { //v4.0
...
..
 if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
...
...must contain a number between...

so basically look for "words" not the code...and edit the msg into format u like....
All the best!

> need more info?
:: don't click HERE ::
 
;-)
if only other applications were as 'smooth' as DW...

> need more info?
:: don't click HERE ::
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top