Hi,
I have added a form to my website.
One of the fields is a check box field called ‘I want to subscribe to the newsletter’.
I wish to default this field to being checked (ie. value = true).
However, I cannot see where this is an option.
Please let me know how I am able to do this.
Thanks.
Hey eviang!
Sorry for the delayed response.
Please provide us with a link to your website so we can see how your form is currently set up.
Cheers!
Dake
Hi Dake,
Please see Private Content for details.
Thanks,
Evian
Hi!
Please add following code to Functions.php file in Appearance > Editor
function add_custom_checked(){
?>
<script>
jQuery(window).load(function(){
jQuery('input#avia_4_1').prop('checked', true);
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_checked');
Best regards,
Yigit
Thank you!
Hey!
glad Yigit could help. Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.
Best regards,
Andy