Form: field validation

J

Jane Here

If the user does not fill in the Contact name field on a form, they get this
message:

[JavaScript Application]
Please enter a value for the realname field.

Now realname is the name of the field, and I must call it this to use the
email facilities of my domain host But I would prefer the message to say:-
Please enter a value for "Contact". Is this possible?

Also, can I change the title of the message window to something more
friendly than: [JavaScript Application]?

Below is the FrontPage 2003 code for the contact field...

<tr><td align="right"><em>Contact</em></td><td>
&nbsp;<!--webbot bot="Validation" b-value-required="TRUE"
i-minimum-length="1" i-maximum-length="100" -->
<input name="realname" value size="35" maxlength="100"><font
color="#FF0000"><span class="required"><font
size="1">*</font></span></font></td></tr>
 
T

Thomas A. Rowe

Under FP Validation, you can assign a "friendly" name for the script to display when the user
doesn't complete the form field.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top