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

From - How can I link a Checkbox to input fields (multiple)?

Community Beginner ,
May 31, 2023 May 31, 2023

Hello, 

 

I am re-creating a form and need to link entry fields to a checkbox so that these fields only activate when the corresponding checkbox is selected by the user.  Can you please help? 

 

Thank you, 

TOPICS
How to , PDF forms
267
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
Adobe Employee ,
May 31, 2023 May 31, 2023

Hi Ayush29966864hyux,

 

Thank you for reaching out.

 

If creating the Acrobat Sign, refer to the following help document to set form field conditions: https://helpx.adobe.com/sign/using/form-field-conditions-settings.html

For the Acrobat form, refer to the information provided in the following community discussion on a similar topic: https://community.adobe.com/t5/acrobat-discussions/is-there-a-way-to-make-a-text-field-required-if-a...

Hope the information helps.

 

Thanks,

Meenakshi

 

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 ,
May 31, 2023 May 31, 2023
LATEST

By "activated", I'm assuming you mean enabling/disabling a field. 

 

One technique is to hide/show fields.

Here's an article on hiding and showing fields. 

https://www.pdfscripting.com/public/Hiding-and-Showing-Form-Fields.cfm?sd=40

 

It includes an example using a checkbox. The exact same technique can be used to enable/disable fields with the "readonly" field property.  Which is a much simpler version of enabling/disabling.

 

If you want to get fancy. Here's an article on creating a "disabled" appearance.

https://acrobatusers.com/tutorials/js_disabling_fields/

 

Another simple way to create a disabled appearance is to cover the field(s) with a gray rectangle annotation.

 

   

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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