Skip to main content
Known Participant
March 14, 2022
Question

Show / hide auto adjusting fields

  • March 14, 2022
  • 2 replies
  • 1057 views

I'm working on creating a installation manual and some of the steps have multiple ways performing the installation. I've already created the buttons that would show / hide the fileds but doing it that way takes up a lot of space. The way it is as of now I have to accommadate the projected space and I was wondering if there was a way to have it auto adjust the page when the button is clicked to minimize space until clicked. I attached a picture to illustrate what I'm looking for. 

 

C_Option is the way it is currently 

Option is that way I want it to be

 

This topic has been closed for replies.

2 replies

Nesa Nurani
Community Expert
Community Expert
March 16, 2022

Have you consider using layers?

You can read about it here:

https://helpx.adobe.com/acrobat/using/pdf-layers.html 

and you can watch this video to see how to use them:

https://www.youtube.com/watch?v=akF7wa0ggvQ 

TP80Author
Known Participant
March 16, 2022

will check out video to see which is best fit my needs, thank you

try67
Community Expert
Community Expert
March 14, 2022

There's no easy way of doing it. The entire contents of the file will have to be composed out of fields, and it will require using a lot of custom-made scripts.

TP80Author
Known Participant
March 15, 2022

I can do complex, just need a starting point. 

try67
Community Expert
Community Expert
March 15, 2022

To show a field:

this.getField("FieldName").display = display.visible;

To hide a field:

this.getField("FieldName").display = display.hidden;

To move a field:

this.getField("FieldName").rect = [0, 100, 100, 200];

The array defines the location of the field on the page in the following format [bottom-left x, bottom-left y, top-right x, top-right y].