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--">
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--">