• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Trying to get a value in a textbox

New Here ,
Jul 27, 2020 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

310

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
community guidelines
Community Expert ,
Jul 27, 2020 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;

Votes

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
community guidelines
New Here ,
Jul 28, 2020 Jul 28, 2020

Copy link to clipboard

Copied

LATEST

Thank you so much!! That worked!

 

Rob

Votes

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
community guidelines