简体   繁体   English

联系表单7 WordPress插件不显示错误消息

[英]Contact Form 7 WordPress Plugin Not Showing Error Messages

I installed Contact Form 7 version 3.7.2 WordPress Plugin, 我安装了Contact Form 7 version 3.7.2 WordPress插件,

http://wordpress.org/plugins/contact-form-7/

It is Prefect according to my requirements, But the Problem is this when i leaves all field Empty and Submit Form, its starts Loading,and Showing No any Error Message. 它根据我的要求是完美的,但问题是当我离开所有字段为空并提交表单,它开始加载,并显示没有任何错误消息。 also when i fill all fields, mail sent but no any success message. 当我填写所有字段时,邮件已发送但没有任何成功消息。

any one who can figure out this. 谁能搞清楚这一点。

Try this for displaying validation error messages. 尝试此操作以显示验证错误消息。

http://wordpress.org/plugins/jquery-validation-for-contact-form-7/ http://wordpress.org/plugins/jquery-validation-for-contact-form-7/

Open 打开

/wp-content/plugins/contact-form-7/scripts.js

and add -form on line 10, so it looks like this: 并在第10行添加-form ,所以它看起来像这样:

$('div.wpcf7-form > form').wpcf7InitForm();
    });

All Problem will be Solved... Enjoy 所有问题都将得到解决......享受

The normal scenario is when form submission includes invalid inputs (eg, required fields are blank or email fields have invalid formats), the form displays validation error messages. 正常情况是表单提交包含无效输入(例如,必填字段为空或电子邮件字段具有无效格式),表单显示验证错误消息。

This post describes how you can customize the validation error messages that Contact Form 7 produces. 本文描述了如何自定义Contact Form 7生成的验证错误消息。 as

<span class="use-floating-validation-tip">[text* your-name]</span>

So you have to check the configurations and may that post help you. 所以你必须检查配置,这篇文章可能会帮助你。

编辑联系人表单时,向下滚动到“ Messages选项卡,并确保这些框中有文本。

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

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