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

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

Community Beginner ,
May 04, 2021 May 04, 2021

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
612
Translate
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.

Translate
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.

Translate
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

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?

 

Translate
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

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

 

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

Translate
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
LATEST

Sorry, try67!

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

Translate
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