Copy link to clipboard
Copied
Trying to set up a form field that only accepts multiples of 10 by using custom validation script.
I tried this without success...
Math.ceil(event.value / 10) * 10;
I'm a newbie at this so any help is appreciated.
Thanks!
Use this as the field's custom validation script:
if (event.value && Number(event.value)%10!=0) {
app.alert("You must enter a multiple of 10.");
event.rc = false;
}
Copy link to clipboard
Copied
Use this as the field's custom validation script:
if (event.value && Number(event.value)%10!=0) {
app.alert("You must enter a multiple of 10.");
event.rc = false;
}
Copy link to clipboard
Copied
Thanks for the quick reply - it works perfectly!
Thank you!