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

Java Script Blocking till clicked button

New Here ,
Dec 27, 2021 Dec 27, 2021

German:

Hallo zusammen,

 

ich habe eine PDF Datei mit über 80 berechnenden Feldern. Diese habe ich ganz normal mit den Formularoptionen "Berechnen" eingestellt. Jetzt möchte Adobe aber nach jedem Feldwechsel alle 80 Felder aktualisieren und berechnen. Das macht die gesamte PDF Datei sehr langsam.

 

Meine Idee war jetzt die Berechnungen direkt am Anfang zu stoppen und zwar solange, bis ein Button am Ende der PDF geklickt wurde auf dem "Berechnen" steht. Dann sollen alle Berechnungen einmal durchgeführt werden und anschließend wieder alles gestoppt werden.

 

Hat hier jemand Erfahrung und kann mir evtl. weiterhelfen?

 

Vielen Dank im Voraus.

 

English:

Hey there, i have a PDF File with over 80 calculating fields. These fields are programmed with normal field calculation of Adobe-Reader. 

 

The problem is, that the pdf is really slow because Adobe-Reader wants to calculate every field after skipping to the next field.

 

I thought of the following solution: Block whole calculating until the customer clicks a button at the end of the page with "Calculate".

 

Could you help me with that?

 

Bildschirmfoto 2021-12-27 um 16.43.44.pngBildschirmfoto 2021-12-27 um 16.44.09.png

TOPICS
PDF forms
697
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 , Jan 04, 2022 Jan 04, 2022

this.getField("field3").value = this.getField("field1").value * this.getField("field2").value;

Translate
Community Expert ,
Dec 27, 2021 Dec 27, 2021

Use a "Calculate" button and put all calculations on this button.

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
New Here ,
Jan 01, 2022 Jan 01, 2022

Hey,

tried it, but i dont find the calculations?

See attachment 🙂

 

Could you help me there?

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 ,
Jan 01, 2022 Jan 01, 2022

Use "Javascript ausführen".

Use Javascript for the calculations.

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
New Here ,
Jan 04, 2022 Jan 04, 2022

Hey thank for that tip,

 

how can i calculate:

 

field1 * field2 and set the solution in field 3?

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 ,
Jan 04, 2022 Jan 04, 2022

this.getField("field3").value = this.getField("field1").value * this.getField("field2").value;

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
New Here ,
Jan 04, 2022 Jan 04, 2022
LATEST

Thank you so much! That worked fine"

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