• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Interactive PDF. When the button is on, it should display a number

Community Beginner ,
May 04, 2021 May 04, 2021

Copy link to clipboard

Copied

Hello everybody! I am trying to solve a problem. I have to develop an interactive PDF where users can click a button and display a number on another page of the same document. And if users click another button, a different number will appear.
Does anyone know how I can do that?

TOPICS
Acrobat SDK and JavaScript , Windows

Views

509

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

correct answers 1 Correct answer

Community Expert , May 04, 2021 May 04, 2021

As the Mouse Up event of each of those buttons enter something like this JavaScript code:

 

this.getField("Text1").value = "ABC";

 

Adjust the field name and value you want it to have, of course.

Votes

Translate

Translate
Community Expert ,
May 04, 2021 May 04, 2021

Copy link to clipboard

Copied

As the Mouse Up event of each of those buttons enter something like this JavaScript code:

 

this.getField("Text1").value = "ABC";

 

Adjust the field name and value you want it to have, of course.

Votes

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
Community Beginner ,
May 04, 2021 May 04, 2021

Copy link to clipboard

Copied

Thanks TRYG7!
I will add this code to each button. But in the place where I need to show the number, do you know how can I display this number when users click the button above?
What Java code should I use?

 

Votes

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
Community Expert ,
May 04, 2021 May 04, 2021

Copy link to clipboard

Copied

It's "try67" not "tryG7", but never mind...

 

Sorry, I don't quite follow what you mean.

Votes

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
Community Beginner ,
May 04, 2021 May 04, 2021

Copy link to clipboard

Copied

LATEST

Sorry, try67!

It works! Thank you very much, We´ve got it!

Votes

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