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

Showing field value only if checkbox is selected

New Here ,
Oct 31, 2020 Oct 31, 2020

Copy link to clipboard

Copied

I have a checkbox in one column and a text field in another column.

I want to show field value in the 2nd column only if the checkbox is selected in the first column, otherwise I want to keep the field blank.

How to do this?

The value I want to show is $15.00 and it will be added to the sum with other fields calculation in the Total field. 

TOPICS
How to , PDF forms

Views

418

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

correct answers 1 Correct answer

Community Expert , Oct 31, 2020 Oct 31, 2020

As the custom calculation script of the text field use something like this:

event.value = this.getField("Checkbox1").valueAsString=="Off" ? "" : 15;

Votes

Translate

Translate
Community Expert ,
Oct 31, 2020 Oct 31, 2020

Copy link to clipboard

Copied

As the custom calculation script of the text field use something like this:

event.value = this.getField("Checkbox1").valueAsString=="Off" ? "" : 15;

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 ,
Oct 31, 2020 Oct 31, 2020

Copy link to clipboard

Copied

LATEST

Thank you for the quick help.

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