[wordpress插件] CF7 – Custom Error MessagesCF7 –自定义错误消息

wordpress 插件 文章 2020-03-20 11:50 551 0 全屏看文

AI助手支持GPT4.0

评分
86
描述

Contact Form 7 (CF7) is one of the most used and reliable WordPress Plugin with with millions of users widespread presence over the web.

联系表7(CF7)是最常用和可靠的WordPress插件之一,拥有数百万用户在网络上的广泛存在。

Users are continuously facing trouble to set different error messages for each fields of Contact Form 7. They are not able to set custom messages like 'Please enter your name', 'Please enter your email', etc. But instead they are forced to use

用户不断遇到麻烦,无法为联系表单7的每个字段设置不同的错误消息。他们无法设置自定义消息,例如“请输入您的姓名”,“请输入您的电子邮件”等。但是,他们被迫使用

'Please fill the required field' for every fields of Contact Form 7.

请联系表格7的每个字段“请填写必填字段”。

Few people have found client side javascript or jQuery methods to overcome this problem.

很少有人找到客户端javascript或jQuery方法来解决此问题。

However, here is a solution for this and just launched 'CF7 – Custom Error Messages' plugin, which will allow you user to put a Custom Error Message for each required fields of Contact Form 7. This will easily configure and display error messages as inputted

但是,这是一个针对此问题的解决方案,它刚刚启动了“ CF7 –自定义错误消息”插件,该插件将允许您为联系人表格7的每个必填字段添加“自定义错误消息”。这将轻松配置并显示输入的错误消息

by Contact Form 7 users.

通过联系Form 7用户。

CF7- Custom Error Messages plugin doesn’t make use of any type of jquery/javascript customization.

CF7-自定义错误消息插件不使用任何类型的jquery / javascript自定义。

You just need to add Messages from admin according to your required fields in your CF7.

您只需要根据CF7中的必填字段添加来自管理员的消息即可。

In order to use this plugin, make sure your Contact Form 7 is activated.

为了使用此插件,请确保您的联系表7已激活。

CF7 – Custom Error Message Features

CF7 –自定义错误消息功能

    • You can customize your Contact form 7 Error Messages.
    • 您可以自定义联系人表单7条错误消息。

    • Allows you to set Different Error Messasge for all your fields.
    • 允许您为所有字段设置“不同的错误消息”。

    • Plugin can work in multiple forms on different page or single page.
    • 插件可以在不同页面或单个页面上以多种形式工作。

    • The Plugin allows to set validation messages for all required input fields.
    • 该插件允许为所有必需的输入字段设置验证消息。

    • Other validation of Text Field, Textarea field and Email field is allowed.
    • 允许对“文本字段”,“文本区域”字段和“电子邮件”字段进行其他验证。

    Plugin Requirement

    插件要求

    PHP version : 5.3 and latest

    PHP版本:5.3和最新版本

    WordPress : WordPress 3.0 and latest

    WordPress:WordPress 3.0和最新版本

安装步骤

    1. There are two ways you can install this WordPress Plugin.

    2. 有两种安装此WordPress插件的方法。

      Either Open https://wordpress.org/plugins/cf7-Custom-error-messages/, which is the official WordPress Plugins’ directory page, or upload all files manually to your site’s server.

      打开https://wordpress.org/plugins/cf7-Custom-error-messages/(这是WordPress插件的官方目录页面),或手动将所有文件上传到您站点的服务器。

      click on the download button the page.

    3. 点击页面上的下载按钮。

    4. Now login to your WordPress site and activate the plugin.

    5. 现在登录到WordPress网站并激活插件。

      Then, select ‘edit’ option in ‘Contact Forms’.

    6. 然后,在“联系表格”中选择“编辑”选项。

    7. You will find a tab added to your Contact Form 7 – “Custom Error”
    8. 您将找到一个添加到联系表7中的标签-“自定义错误”

    9. You can set Custom Error Messages from here, for all the fields added to your contact form.
    10. 您可以在此处为添加到联系表单的所有字段设置“自定义错误消息”。

下载地址
https://downloads.wordpress.org/plugin/cf7-custom-error-messages.1.1.zip
-EOF-

AI助手支持GPT4.0