How do I relate the value of a field to act on another form field

New Here ,
Mar 15, 2021 Mar 15, 2021

Copy link to clipboard

Copied

I am making a form in which I need to have some fields blocked and that according to the responses that are generated they are automatically unlocked, for example: when asked if they have a child, yes or no is checked, if the answer is YES, they are activated the child name fields, if the answer is NO, are kept blocked.

TOPICS
How to, PDF forms

Views

41

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
community guidelines
Adobe Community Professional ,
Mar 15, 2021 Mar 15, 2021

Copy link to clipboard

Copied

There are a couple of options for this. The ReadOnly property will lock the fields, although they still look the same, or they can be hidden/shown.

Here's a tutorial on hiding/showing fields.  The same scripts can be used to set the readonly field property if you want to go that route.

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

 

 

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

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
community guidelines
Most Valuable Participant ,
Mar 15, 2021 Mar 15, 2021

Copy link to clipboard

Copied

LATEST

It's possible, but what kind of fields are they?

Showing/hiding the other fields is not enough. You also need to reset them when they are hidden, or you will end up with invalid data filled into the form, which can cause issues if you export it, for example.

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
community guidelines