Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #591852

    Have set up a drop-down list for the Element:Subject on the Contact Form and all works ok… is it possible though to make the first line ie “select subject here” to be marked as a blank entry so the user has to make a choice from the list of options?
    Thanks.

    #593527

    Hi sacharelle!

    We are working on your ticket please wait while we update the results here soon.

    We have added the below code in functions.php which will empty the value field for the select this message option. please check the contact form now and let us know what you think…

    
    // Remove subject value
    function custom_excerpt(){
    ?>
    <script>
    jQuery(window).load(function(){
    	var emptyval = '';
       jQuery("#avia_5_1").find("option[value='Select subject here']").val(emptyval);
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_excerpt');

    Best regards,
    Vinay Kashyap

    • This reply was modified 8 years, 8 months ago by Vinay.
    #593678

    Hi Vinnie, many thanks for this it is just what we wanted!
    Much appreciated, best regards, CHRIS

    #593991

    Hey!

    Glad we could help you with this. we really appreciate if you rate our theme on themeforest :)
    Please feel free to get in touch with us if you have any questions.

    Thank you for using Enfold :)

    Regards,
    Vinay Kashyap

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Validation on Element:Subject (Contact Form)’ is closed to new replies.