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.
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
Hi Vinnie, many thanks for this it is just what we wanted!
Much appreciated, best regards, CHRIS
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