I have 2 number fields in adobe acrobat, where in the first I can give a number, and in the other I decrease it with 20. The task would be to tell the calculated field that if the other has nothing in it, stay empty, and when I write the number in the first field, calculate the other. How can I do this?
You can use this custom calculation code:
var v = this.getField("NameOfOtherField").value;
if (v=="") event.value = "";
else event.value = (+v)-20;
Thank you very much!