Here's a little add-on that some of you might want..
Require a link to the actual timeslip for all ETs that are 11.99 or quicker.
{edit} This is for v1.3 only.
This bit of javascript will check the 1/4 mile ET field and the timeslip link field. If the 1/4 mile ET is less than 12.00 and the timeslip link field is empty, users will get a small pop-up box when they click the submit button telling them that a timeslip is required for ETs that are 11.99 or quicker.
Of coarse you can easily change it to any ET for the slip requirement.
In your modifytimeslip template find:
Above it add:
Code:
<script language="javascript">
<!--
function validate(theform) {
if ((theform.field55.value<12) && (theform.field55.value>0) && (theform.field57.value=="")) {
alert("A link to your timeslip is required if your 1/4 mile ET is 11.99 or quicker.");
return false; }
}
//-->
</script>
Find:
Code:
<form action="member.php" method="post">
Replace it with:
Code:
<form action="member.php" name="vbform" method="post" onSubmit="return validate(this)">
Done.