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

Wenn/Dann Funktion als Berechnungsformel in einem PDF Formular

Community Beginner ,
Aug 24, 2023 Aug 24, 2023

Hallo liebes Supportteam, 

ich bitte nochmals um Hilfe zu Adobe Acrobat Pro DC.

Ich möchte gerne in einem PDF Formular eine Berechnung anlegen wie folgt: 

Kontrollkästchen K1 = jährliche Zahlweise / K2 = Halbjährlich / K3 = Vierteljährlich. 

Wenn jeweils das Kontrollkästchen angeklickt wird, sollte der Gesamtbetrag in einem weiteren Textfeld dann jeweils ausgerechnet werden.

Also wenn K1 angeklickt wird, dann sollte der Gesamtbetrag zu 100% angegeben werden,

wenn K2, dann der Gesamtbetrag nur zu 50% oder 0.50.

wenn K3, dann Gesamtbetrag zu 25% oder 0.25. 

In einer Exceltabelle würde ich dies mit einer wenn/dann Funktion erledigen. Wie ich es in Adobe umgesetzt bekomme, weiß ich leider nicht. Ich vermute Javascript. Ich hab auch schon im Forum recherchiert aber nichts passendes gefunden. 

Kann mir jemand weiterhelfen? 

Vielen Dank.

TOPICS
JavaScript , PDF forms
3.9K
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
1 ACCEPTED SOLUTION
Community Expert ,
Aug 24, 2023 Aug 24, 2023

You actually don't need a script to do this at all. Just apply the export values "1", "0.5" and "0.25" to each one of those boxes (resp.) and then use the built-in Product option under the Calculate tab to multiply the value of the check-box group with that of the total amount to get the desired result.

View solution in original post

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 ,
Aug 24, 2023 Aug 24, 2023

You actually don't need a script to do this at all. Just apply the export values "1", "0.5" and "0.25" to each one of those boxes (resp.) and then use the built-in Product option under the Calculate tab to multiply the value of the check-box group with that of the total amount to get the desired result.

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 ,
Aug 24, 2023 Aug 24, 2023

Vielen Dank für die schnelle Hilfe. 

Ist es möglich alle drei Rechenarten in einem Textfeld unterzubringen? Also ich habe dann nur ein Textfeld in dem dann  der jeweilige Betrag angezeigt wird. 

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 ,
Aug 24, 2023 Aug 24, 2023

Yes, it should do that... I'm assuming your check-boxes all have the same name, so they form a group and no more than one value can be selected at any point. Is that not the case?

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 ,
Aug 28, 2023 Aug 28, 2023
LATEST

Ich hatte tatsächlich die Kontrollkästchen mit drei verschiedenen Namen erstellt. Das hab ich jetzt geändert und die jeweiligen Exporte gelassen. Jetzt funktioniert es.

Vielen lieben Dank für die Hilfe.

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