Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #543508

    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.

    #544886

    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

    #545044

    Hi Dake,

    Please see Private Content for details.

    Thanks,
    Evian

    #545208

    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

    #545233

    Thank you!

    #545239

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.