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

Show/Hide Labels in Acrobat Adobe Form

New Here ,
Jan 22, 2019 Jan 22, 2019

I’ve created a form and below is a snag-it of part of the form in question.

1.png

The drop-down “Expenditure Type:” has an option “Other” as one of the selections. When “Other” is selected the following appears:

2.png

Underneath the second row I have labels. I’m wondering if there is a way to hide/show the “Acct Code” and “Expenditure Type” (squared in red) when

Hide "Acct Code" and Expenditure Type" when the option "Other" is not selected

Show "Acct Code" and Expenditure Type" when the option "Other" is selected

Thank you for your assistance in advance.

TOPICS
PDF forms
2.5K
Translate
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
1 ACCEPTED SOLUTION
Community Expert ,
Jan 22, 2019 Jan 22, 2019

As the custom calculation script of the drop-down enter this code:

if (event.value=="Other") {

     this.getField("Acct Code").display = display.visible;

     this.getField("Expenditure Type").display = display.visible;

} else {

     this.getField("Acct Code").display = display.hidden;

     this.getField("Expenditure Type").display = display.hidden;

}

View solution in original post

Translate
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 ,
Jan 22, 2019 Jan 22, 2019

As the custom calculation script of the drop-down enter this code:

if (event.value=="Other") {

     this.getField("Acct Code").display = display.visible;

     this.getField("Expenditure Type").display = display.visible;

} else {

     this.getField("Acct Code").display = display.hidden;

     this.getField("Expenditure Type").display = display.hidden;

}

Translate
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 ,
Jan 22, 2019 Jan 22, 2019

I’ve tried the coding provided in the correct location and it does not seem to be working. The “Acct Code” and “Expenditure Type” are “Add Text” boxes created in Edit PDF Tool, and not a "Text Field" created in Prepare Form Tool. I apologize if I confused the terms.

Please let me know if there is a way to show/hide these fields, if not, is there another solution?

Thanks again for your assistance.

Translate
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 ,
Jan 22, 2019 Jan 22, 2019

You should use text fields for this.

Translate
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 ,
Jan 23, 2019 Jan 23, 2019

Great suggestion. I used text fields and got it to work - partially.

How do I auto-populate the text fields with the labels needed "Acct Code" and "Expenditure Type"?

2019-01-23_10-34-35.png

Translate
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 ,
Jan 23, 2019 Jan 23, 2019

You can enter those values as their default values.

Translate
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 ,
Jan 23, 2019 Jan 23, 2019
LATEST

Blushing..........I should have known that

Thank you so much.

Translate
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