Copy link to clipboard
Copied
Hallo! Ich habe ein mehrseitiges PDF. Wenn ich ein Kontrollkästchen auf der 1. Seite anklicke, soll ein anderes auf der 2. Seite und 3. Seite den Wert automatisch übernehmen. Ich habe bereits einiges an Javascript ausprobiert, aber es funktioniert alles nicht....
Weiß jemand eine Lösung?
Copy link to clipboard
Copied
Hi @Sabine2708,
If you’d like the checkboxes on other pages to update only when a specific box is checked (and not always share the same value), you can use a small custom JavaScript in Acrobat:
if (event.target.value === "Yes") {
this.getField("CheckBox_Page2").checkThisBox(0, true);
this.getField("CheckBox_Page3").checkThisBox(0, true);
} else {
this.getField("CheckBox_Page2").checkThisBox(0, false);
this.getField("CheckBox_Page3").checkThisBox(0, false);
}
Note: Make sure the other checkboxes (“CheckBox_Page2”, “CheckBox_Page3”) have unique names — otherwise, Acrobat will link them automatically.
This way, when you check the first box, Acrobat automatically updates the others. If you uncheck it, they uncheck too — keeping full control and flexibility.
Best regards,
Tariq | Adobe Community Team
Find more inspiration, events, and resources on the new Adobe Community
Explore Now