Copy link to clipboard
Copied
I have a box Text6 that has a number of hours worked. I have another box Text7 that is Y of N. I am trying to put the number of hours into Text40 if the value of Text7 is Y. If the value of Text7 is N then I want a 0 value entered into Text40. I have been try to do this all day. I have acrobat pro 9. Please help.
Thanks!
Rob
Copy link to clipboard
Copied
As the custom calculation script of "Text40" enter the following code:
event.value = (this.getField("Text7").valueAsString=="Y") ? this.getField("Text6").value : 0;
Copy link to clipboard
Copied
Thank you so much!! That worked!
Rob