Skip to main content
Inspiring
June 5, 2025
Answered

Toggle checkbox with a button

  • June 5, 2025
  • 1 reply
  • 334 views

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

Correct answer Nesa Nurani

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));

1 reply

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));
PDF Automation Station
Community Expert
Community Expert
June 5, 2025

Slick.