Skip to main content
Blue Guys IT
Participant
Sep 13, 2023 5:40 PM UTC
Question

Set conditional formatting for access to form fields in Acrobat Pro

I would like to set up conditional formatting to make it to where a certain field cannot be written in on a digital form unless a specific option is selected from a radio button group.

 

Form example image. When the person filling the form selects "other", only then should they be allowed to enter text into the text field to the right. If they don't select "other", then they should not be able to enter text. How do i make this happen, if it is a posiblity at all?

 

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Nesa Nurani
Community Expert
Community Expert
Sep 13, 2023 6:18 PM UTC

Use this as custom calculation script of text field and change "Radio button name" with the actual name of your radio buttons:

event.target.readonly = this.getField("Radio button name").valueAsString == "other" ? false : true;

 

Translate