Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.