Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Toggle checkbox with a button

Explorer ,
Jun 05, 2025 Jun 05, 2025

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

TOPICS
JavaScript
121
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Jun 05, 2025 Jun 05, 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));

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 05, 2025 Jun 05, 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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 05, 2025 Jun 05, 2025
LATEST

Slick.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines