I have fixed the logic and fields in the javascript in the modifytimeslips template.
The first part of the template should be as follows..
Code:
<if condition="$vboptions[allowtimeslipupload]">
<script language="javascript">
<!--
function validate(theform) {
if ((theform.ctb_field55.value<=$vboptions[tdsliprequired]) && (theform.ctb_field55.value>0) && (theform.upload.value=="") && (theform.timeslipdateline.value=="") && (theform.ctb_field57.value=="")) {
alert("An uploaded copy of or a link to your timeslip is required if your 1/4 mile ET is $vboptions[tdsliprequired] or quicker.");
return false;
}
}
//-->
</script>
<else />
<script language="javascript">
<!--
function validate(theform) {
if ((theform.ctb_field55.value<=$vboptions[tdsliprequired]) && (theform.ctb_field55.value>0) && (theform.ctb_field57.value=="")) {
alert("A link to your timeslip is required if your 1/4 mile ET is $vboptions[tdsliprequired] or quicker.");
return false; }
}
//-->
</script>
</if>
Once all these changes have been made it's pretty well bug free.. although I am not a big fan of client side verification of forms as it is easy to circumvent.
Modify the xml package (or I can do it for you) and reupload then I'll upgrade it retaining the credit .. prolly should also have some additional credit