Highlighted

Trying to get a value in a textbox

New Here ,
Jul 27, 2020

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

TOPICS
PDF forms

Views

29

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Trying to get a value in a textbox

New Here ,
Jul 27, 2020

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

TOPICS
PDF forms

Views

30

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jul 27, 2020 0
Most Valuable Participant ,
Jul 27, 2020

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;

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 27, 2020 0
rgrohman LATEST
New Here ,
Jul 28, 2020

Copy link to clipboard

Copied

Thank you so much!! That worked!

 

Rob

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 28, 2020 0