Validation on another Form Field

Megawisdumb

Registered User.
Local time
Today, 16:42
Joined
Apr 18, 2002
Messages
17
Trying to get validation from one field on a form to another (i.e. If field "PAFType"=3 then require field "Cdate" to be populated). However, I can't seem to find the right code combo to set the required flag. Any help is very much appreicated! Below is my latest attempt.

phil

<Head>
<script language="JavaScript">
<!--
function verify(form) {
if (form["PAFType"].value = 3) {
set ["Cdate"].b-value-required="True";
return false;
}
}
//-->
</script>
</head>

<body><form action="script.pl" method="post" onSubmit="return verify(this);"><form method="POST" action="--WEBBOT-SELF--">
 
Megawisdumb said:
Below is my latest attempt.

Why are you trying to use JavaScript with an Access database?
 
Why Java?

I am open to any script as long as it performs! Frontpage2003 does not have any contingent field validation built in so I figured Java was probably the easiest way to go. What would you suggest?
 
If your question is related to MS FrontPage, I'd suggest you post in the Other Software forum. This is for MS Access. :)
 

Users who are viewing this thread

Back
Top Bottom