Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Maximum number of actions for a button

New Here ,
Aug 03, 2021 Aug 03, 2021

Copy link to clipboard

Copied

I'm creating buttons & actions for interactive pdf in Adobe acrobat pro. In a single page, I could NOT add more than 102 actions for a single button. Is this limit can be extended somehow in adobe settings.

TOPICS
Create PDFs, How to, PDF forms

Views

63

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Aug 03, 2021 Aug 03, 2021

Copy link to clipboard

Copied

For what does you need so many actions?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 03, 2021 Aug 03, 2021

Copy link to clipboard

Copied

Its an engineering manual. 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Aug 03, 2021 Aug 03, 2021

Copy link to clipboard

Copied

Please answer my question.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 03, 2021 Aug 03, 2021

Copy link to clipboard

Copied

I don't think i understood your question correctly. But here is my answer, button needs to hide/show another buttons (basically layer). Does that answer your question.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Aug 03, 2021 Aug 03, 2021

Copy link to clipboard

Copied

When you use a script for this you need only one action at the button.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 04, 2021 Aug 04, 2021

Copy link to clipboard

Copied

Do you have any link or mock up document with javascript that can help me.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 04, 2021 Aug 04, 2021

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Aug 04, 2021 Aug 04, 2021

Copy link to clipboard

Copied

The basic code is very simple:

 

this.getField("field1").display = display.visible; // show this field

this.getField("field2").display = display.hidden; // hide this field

 

Just duplicate these lines as many times as needed, adjusting the field name each time.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 04, 2021 Aug 04, 2021

Copy link to clipboard

Copied

The interactive pdf created this way will work as expected in browsers also? if the pdf is opened through browsers?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Aug 04, 2021 Aug 04, 2021

Copy link to clipboard

Copied

There's no definite answer for that. It depends on the browser and the PDF plugin used in it.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 04, 2021 Aug 04, 2021

Copy link to clipboard

Copied

I've attached a trial document here. In this, i've added script for the yello arrow button to turn red when clicked. It happens, but the red color fills outside the arrow. I want the arrow shape to change the color to red. is it possible? Also how to detect color for if condition. I've tried like this, but it didn't work.

var arrowColor = this.getField("Off-Yellow").fillColor;
if arrowColor == "rgb,1,1,0"
{
event.target.fillColor = color.rgb(1,0,0);
this.getField("Text-Button").display = display.visible;
}
else
{
event.target.fillColor = color.rgb(1,1,0);
this.getField("Text-Button").display = display.hidden;
}

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Aug 04, 2021 Aug 04, 2021

Copy link to clipboard

Copied

LATEST

You have multiple errors in your code. I recommend you read the documentation of the color object to see how to define new colors, and how to compare color objects.

You also have some errors that have to do with the core JS-syntax. Namely, you have to put parentheses around the condition in your if-statements.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines