How to precheck checkboxes

I’ve tried every method i know and googled but still can’t get checkboxed to be Prechecked.

Idealy i wanted Switched but i gave up and tried with checkboxes.

tried added ‘checked’ like so:

And it works in wappler, but once published the ‘checked’ is removed

I noticed it works outside of any Input group…is this by design?

Tried using P tag but no luck

Got them to work by removing IS Checkbox Group, but surely they should work?

@Kattouf
You only need the checkbox group component if you are going to use dynamic checkboxes, with dynamic values.

For a registration/login form, you don’t need it. So just add your checkboxes without using this component, but directly select checkbox form group:

Then you can just add “checked” to it:

<input class="custom-control-input" type="checkbox" value="1" id="input2" name="input2" checked>

Same goes for switches.

2 Likes