문제

I’m looking for solution whole day but can’t find anything that work. So I want to automaticaly submit CF7 on page load. If I use any jQuery or JS solution there is some endless looping on the site. So any solution for my problem?

Thanks in advance

도움이 되었습니까?

해결책

You need to call submit() function on document ready check the code

<script type="text/javascript">
jQuery(document).ready(function(){
     jQuery("#wpcf7-f3857-o1 form").submit();
});
</script>

In my code wpcf7-f3857-o1 is the contact form's css id. You need to change that id. try the code and let me know the result. Thanks

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 wordpress.stackexchange
scroll top