admin管理员组文章数量:1429878
I have a contact form in wordpress that has an income field which is a drop down. The options are 0-R9999 and R10000+. I have 2 thank you pages. I would like the form to go to a certain thank you page depending on the selection that was made in the drop down.
Any help?
I have a contact form in wordpress that has an income field which is a drop down. The options are 0-R9999 and R10000+. I have 2 thank you pages. I would like the form to go to a certain thank you page depending on the selection that was made in the drop down.
Any help?
Share Improve this question asked May 13, 2019 at 7:34 WebmasterWebmaster 11 bronze badge 1- Third party plugins are off-topic here. Please consult the support forum. – nmr Commented May 13, 2019 at 13:18
1 Answer
Reset to default 0If you're okay with paying for a plugin, here's one that does exactly what you need:
https://querysol/product/contact-form-7-redirection/
Otherwise you need to write some code yourself, the documentation is here:
https://contactform7/redirecting-to-another-url-after-submissions/
The code itself needs to be extended a bit, e.g.
<script>
document.addEventListener( 'wpcf7mailsent', function( event ) {
if (jQuery('#yourdropdown').val() == '0') {
location = 'http://example1/';
} if (jQuery('#yourdropdown').val() == 'R9999') {
location = 'http://example2/';
}
}, false );
</script>
本文标签: How to direct contact form submission to a certain page
版权声明:本文标题:How to direct contact form submission to a certain page 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745499770a2660975.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论