Highlighted

Showing field value only if checkbox is selected

New Here ,
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. 

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

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

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

TOPICS
How to, PDF forms

Views

27

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

Showing field value only if checkbox is selected

New Here ,
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. 

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

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

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

TOPICS
How to, PDF forms

Views

28

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
Oct 31, 2020 0
Most Valuable Participant ,
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;

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...
Oct 31, 2020 1
MAK777 LATEST
New Here ,
Oct 31, 2020

Copy link to clipboard

Copied

Thank you for the quick help.

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