Quote:
Originally Posted by zurih
default value = none
field ID = 50
I changed a bit the names and properties of the fields..
|
Ok, if the field ID is 50, the field type is "select", and the default value is blank the following code will work (tested it on my forum).
In the modifytimeslip template find (two places):
Code:
<script language="javascript">
<!--
function validate(theform) {
Below both instances add this:
Code:
if (theform.field50.value=="0") {
alert("You have not filled in one or more required fields. Please add all required information and try again.");
return false; }
Quote:
Also, with the script inside the template, I'm getting in the status bar in IE "Done.. but with errors.."
|
Make sure you pasted the code correctly. You shouldn't be getting any javascript errors.