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

Manual Entry In Calculations Field

New Here ,
Mar 26, 2024 Mar 26, 2024

Copy link to clipboard

Copied

Hello,

It's been a while since I've done a custom script and need help. 

 

I have a calculations field on a form adding 7 different entries (Contact Duration in Hrs 1, Contact Duration in Hrs 2, . . . Contact Duration in Hrs 7). Sometimes the user has to use two forms because they made over 7 contact. Therefore I want to be able to also add a manual entry option since this form can't automatically add up the values from another document.

 

I'm looking for something like: if the manual field of 'Total Hours Manual' is blank then display the calculation field 'Total Hours Auto'

- if there is a manual entry then the automatic calculation field should be hidden behind the manual entry

- if there is not a manual entry then the automatic calculation should be visable

TOPICS
Create PDFs , Edit and convert PDFs , How to , JavaScript , PDF , PDF forms

Views

107

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 ,
Mar 27, 2024 Mar 27, 2024

Copy link to clipboard

Copied

LATEST

You can use this as 'Validation' script of 'Total Hours Manual' field:

this.getField("Total Hours Auto").display = (event.value != "") ? 1: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