Skip to main content
Participant
August 24, 2023
Answered

Wenn/Dann Funktion als Berechnungsformel in einem PDF Formular

  • August 24, 2023
  • 1 reply
  • 4665 views

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.

Correct answer try67

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.

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
August 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.

Participant
August 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. 

try67
Community Expert
Community Expert
August 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?