简体   繁体   English

Wordpress 联系表格 7 插件提交到特定页面

[英]Wordpress contact form 7 plugin submit to a specific page

I created a custom form using contact form 7 plugin in wordpress. I dont want to send any mail.我在 wordpress 中使用联系表单 7 插件创建了自定义表单。我不想发送任何邮件。 I just want to submit a form on a specific page and save data into database and third party api called with form data and also if any error getting display error on form and if data saved successfully then redirect to success page.我只想在特定页面上提交表单并将数据保存到数据库和第三方 api 调用表单数据,如果有任何错误在表单上显示错误,如果数据保存成功则重定向到成功页面。

Use this code to redirect to success page after submit in "additional setting" of contact form 7 在联系表7的“其他设置”中提交后,使用此代码重定向到成功页面

on_sent_ok: "location.replace('http://www.YOURSITE.com/thankyou');" 

It will redirect to thankyou page after successfully submission. 成功提交后,它将重定向到thankyou页面。

Also you can use this plugin to store data in database 您也可以使用此插件将数据存储在数据库中

To add a 'redirection' function in the Contact Forms 7 you can just use the free plug-in: Redirection for Contact Form 7 by Qube One要在联系人 Forms 7 中添加“重定向”function,您可以使用免费插件: Qube One 的 Contact Form 7 重定向

And to save the data from the forms, you can just use the free plug-in: Contact Form CFDB7 by Arshid要保存 forms 中的数据,您可以使用免费插件: Arshid 的 Contact Form CFDB7

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM