Sitefinity script unchecking checkbox on pageload
So I have a script to check the checkbox on the contact form on page load. I take a look why it wouldn't work and I see why. When it gets to one of the script that Sitefinity automatically loads it unchecks the checkbox.
is the script and I don't know what the hell that is. What should I do?
I have just replied in the ticket you have opened related to this.
I am pasting the reply from the ticket in this forum thread as well for your convenience:
As far as I can understand from the video demonstration you have dropped a Checkboxes form field control in a form and you would like all the checkboxes to be unchecked by default. If so, please note that you can open the form for edit from Content -> Forms and then you can mark the Checkboxes form field as not required and then uncheck the option selected by default. Please publish the form.
I have recorded a video demonstrating the steps on my side and the results. Please find the video attached to this ticket.
Try adding a small timeout and execute the check code after the built-in script has unchecked it like so:
Thanks for quick response and great solution - Velizar :)