Conflict between two JavaScripts (I think)
This has been driving me nuts for a few hours and I've just realised what I think the problem is, but I don't know who to rectify it.
In all fields, I have the following custom validation script so I don't get a form full of zeros
if(event.value == 0 | event.value == '') event.value = '';
Problem is, in another field I have the following which says I want a specific field to show zeros, which it's not doing, I'm guessing because of the custom validation script.
if (this.getField("vat rate.10").value == "Exempt") {
event.value = 0;
}
else {
event.value = this.getField("vat rate.10").value/ 100.0;
}
If I remove the custom validation script, I obviously get a load to zeros appearing. Help please!
