Skip to main content
CalcBuilder logo
CalcBuilder Forum

Yes/No checked

User joel

Hi
my Question is how can i set a YES/NO box as default checked.

Moonsoft support

Hi,
for setting checkboxes checked by default, you can use the javascript tab to set the check as soon as the form loads. You only need to add this code:


CB("input").attr("checked","checked");

at the first js tab of your calculator ('executed on loaded page'). You only need to replace XXX with the variable name you have entered for your field.


Hope this helps, regards

...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!
...
Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!