Skip to main content
Blue Guys IT
Participant
September 13, 2023
Question

Set conditional formatting for access to form fields in Acrobat Pro

  • September 13, 2023
  • 1 reply
  • 299 views

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 has been closed for replies.

1 reply

Nesa Nurani
Community Expert
Community Expert
September 13, 2023

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;