Skip to main content
Participant
February 1, 2017
Answered

Number of actions limited?

  • February 1, 2017
  • 2 replies
  • 380 views

Is there an upper limit of the number of actions attached to a button?

Like: If the button is clicked, 50+ invisible fields turn visible.

This topic has been closed for replies.
Correct answer try67

There's no official limit, no, but I have encountered issues with Actions that have a lot of commands added to them.

What you're describing is better done using a script, though, and it will only take one command.

2 replies

Inspiring
February 1, 2017

If using the default Acrobat JavaScript editor there is a limit on the number of lines of scripts that can be entered into an action. If one .installs a text editor (not Word or other word processing program) there appears to be no limit.

With careful planning of field names it is possible to reduce the number of lines of code needed to process a group of fields. Use of hierarchical field names will allow one to access common properties like "display" to be changed with one line of code, one could use a for loop to process just a consecutive group of field names, or one could create an array of field names for processing and reduce the amount of code to change the properties of that group of named fields.

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
February 1, 2017

There's no official limit, no, but I have encountered issues with Actions that have a lot of commands added to them.

What you're describing is better done using a script, though, and it will only take one command.