Skip to main content
Inspiring
June 5, 2025
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
June 5, 2025

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
June 5, 2025

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
June 5, 2025

Slick.

Translate