Skip to main content
Participant
October 7, 2024
Question

Need to know how to make one box auto tick, when another is ticked

  • October 7, 2024
  • 2 replies
  • 288 views

Hi,

I am needing help, i have a form i am creating and need to create some rules around the check boxes. Basically, i need the following:

 

Check Box66 auto ticks when Check Box64 is ticked

Check Box66 auto ticks when Check Box65 is ticked

Check Box69 auto ticks when Check Box67 is ticked

Check Box 69 auto ticks when Check Box68 is ticked

 

Is this possible please?

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
October 7, 2024

Do you want the user to be able to untick those boxes, if they wanted to, even if the first ones are ticked?

Should these boxes untick automatically, when the first ones are unticked?

If the answers to these questions are No and Yes (resp.) then just give the fields the same name and export value, and it will work automatically, without needing any scripts.

Nesa Nurani
Community Expert
Community Expert
October 7, 2024

There are a couple of ways to do this, depends on what you need, but here is basic script to check another checkbox if one is checked, as 'Mouse UP' action of Check Box64 add this script:
if(event.target.value !== "Off")
this.getField("Check Box66").checkThisBox(0, true);

Participant
October 7, 2024

This is great thank you. I have changed the names of my check boxes to make it a little easier. I basically need the following 4 rules:

Domestic EAS auto ticks when EESS Dom is ticked

Domestic EAS auto ticks when EV Dom is ticked

non-domestic EAS auto ticks when EESS non-dom is ticked

non-domestic EAS auto ticks when EV non-dom is ticked