Checkbox checked by default

Permalink Browser Info Environment
Hi,

I would love to have the checkbox checked by default. In the code I saw that you set value="1" in the checkbox tag, but that doesn't work. The "checked" attribute should be added instead.

I think the most versatile solution would be to be able to choose whether the checkbox should be checked or not in the form.

I hope you could add this.

Thanks.

Pascal

Type: Discussion
Status: New
plindelauf
View Replies:
Mainio replied on at Permalink Reply
Mainio
Hi,

Thanks for the feedback! It's always greatly appreciated when someone takes the time to give it!

If you customize the disclosure content using stacks, you can use the "Cookies Disclosure Form" to show a form completely without the checkbox. It would basically suit this need.

I don't see it would add any value if the checkbox checked/not was an option because you can always just decide not to show the checkbox at all. It would basically be the same and I don't see any actual reason for having the checkbox there if it's automatically checked.

And if you really have a special need that the checkbox should be automatically checked, you can always create a custom template for that block which would do what you need. Or alternatively write 1 line of jQuery to achieve that.

Therefore, I'd say it is unlikely that we would add such feature to the add-on. Less is more.

Best,
Antti / Mainio

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.