Skip to main content
Participant
August 7, 2020
Question

Is there a javascript to change the background color of an entire form by clicking a checkbox?

  • August 7, 2020
  • 1 reply
  • 847 views

I have a form that needs to change background colors depending on a selection. For instance, if someone selects that a contract is a revenue contract, the entire background of the form needs to turn pink. I see a ton of information about changing fields but nothing about changing background color based on selection. Any help will be greatly appreciated.

This topic has been closed for replies.

1 reply

Luke Jennings3
Community Expert
Community Expert
August 7, 2020

A javascript could probably do that, or you could use buttons to show/hide layers. You would create a multi-layer PDF that includes all of the background colors, when the button is selected, the desired background layer color would appear. The user would need to use Acrobat or Reader to fill out the form.

Here is a link to a related discussions with instructions:

https://community.adobe.com/t5/indesign/creating-an-interactive-gallery-exportable-pdf-in-indesign/m-p/11299367?page=1