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

Im JavaScript die Summe berechenen und per Button an Feld übergeben

New Here ,
Jun 23, 2019 Jun 23, 2019

Copy link to clipboard

Copied

Hallo zusammen,

ich versuche schon seit 3 Tagen in einem Script die Summe zu berechnen und diese per Button an ein anderes Feld zu übergeben.

(this.getField("H3-1"))= SUMME(H-SP, G-SP, H-SÄ, G-SÄ)

das einzigste was ich so in der Richtung denke konnte was aber leider nicht klappt.

In H3-1 soll die Summe aus den Felder H-SP, G-SP, H-SÄ, G-SÄ

Das ganze soll über einen Knopf laufen

Kann mir da mal jemand auf den richten weg helfen. Bin absoluter Neuling

Habe Adobe Acrobat DC 2019

Ich danke euch

Gruß Michael

TOPICS
Acrobat SDK and JavaScript

Views

873

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 ,
Jun 24, 2019 Jun 24, 2019

Copy link to clipboard

Copied

Try following Javascript code:

this.getField("H3-1").value =

Number(this.getField("H-SP").valueAsString)

+ Number(this.getField("G-SP").valueAsString)

+ Number(this.getField("H-SÄ").valueAsString)

+ Number(this.getField("G-SÄ").valueAsString);

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
New Here ,
Jun 25, 2019 Jun 25, 2019

Copy link to clipboard

Copied

LATEST

Vielen Dank für die Hilfe.

Thank you for your help.

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