Java Script Blocking till clicked button

New Here ,
Dec 27, 2021 Dec 27, 2021

Copy link to clipboard

Copied

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

Views

69

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

correct answers 1 Correct answer

Adobe Community Professional , Jan 04, 2022 Jan 04, 2022

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

Likes

Translate

Translate
Adobe Community Professional ,
Dec 27, 2021 Dec 27, 2021

Copy link to clipboard

Copied

Use a "Calculate" button and put all calculations on this 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 ,
Jan 01, 2022 Jan 01, 2022

Copy link to clipboard

Copied

Hey,

tried it, but i dont find the calculations?

See attachment 🙂

 

Could you help me there?

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

Copy link to clipboard

Copied

Use "Javascript ausführen".

Use Javascript for the calculations.

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

Copy link to clipboard

Copied

Hey thank for that tip,

 

how can i calculate:

 

field1 * field2 and set the solution in field 3?

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

Copy link to clipboard

Copied

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

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

Copy link to clipboard

Copied

LATEST

Thank you so much! That worked fine"

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