Answered
Calculate value or enter value manually
Hi. How can I adjust this script to be able to write over it if need be?
event.value = this.getField("nopts").value * 4;
if(event.value == 0)
event.value = "";Hi. How can I adjust this script to be able to write over it if need be?
event.value = this.getField("nopts").value * 4;
if(event.value == 0)
event.value = "";You can use this:
if(event.source && (event.source.name=="nopts")){
event.value = this.getField("nopts").value * 4;}
if(event.value == 0)
event.value = "";
As long as "nopts" value doesn't change you can enter value manually.
You can also change script a little and use it as validation script in "nopts" field.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.