Skip to main content
Inspiring
Jun 5, 2025 4:55 PM UTC
Answered

Toggle checkbox with a button

My checkbox name is "Check Box1" is it possible to toggle its state with a button click?

Nesa Nurani
Nesa NuraniCorrect answer
Community Expert
Jun 5, 2025 4:57 PM UTC

Yes, it's possible using script, place this script in button under "Action" as 'Mouse UP':

var f = this.getField("Check Box1");
f.checkThisBox(0, !f.isBoxChecked(0));

2 replies

Nesa Nurani
Community Expert
Nesa NuraniCommunity ExpertCorrect answer
Community Expert
Jun 5, 2025 4:57 PM UTC

Yes, it's possible using script, place this script in button under "Action" as 'Mouse UP':

var f = this.getField("Check Box1");
f.checkThisBox(0, !f.isBoxChecked(0));
Translate
PDF Automation Station
Community Expert
Community Expert
Jun 5, 2025 5:13 PM UTC

Slick.

Translate