這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

CF7 – Custom Error Messages

描述

Contact Form 7 (CF7) is one of the most used and reliable WordPress Plugin with with millions of users widespread presence over the web. 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 ‘Please fill the required field’ for every fields of Contact Form 7.

Few people have found client side javascript or jQuery methods to overcome this problem. 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 by Contact Form 7 users.

CF7- Custom Error Messages plugin doesn’t make use of any type of jquery/javascript customization. You just need to add Messages from admin according to your required fields in your CF7. In order to use this plugin, make sure your Contact Form 7 is activated.

CF7 – Custom Error Message Features

  • You can customize your Contact form 7 Error Messages.
  • 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
WordPress : WordPress 3.0 and latest

螢幕截圖

  • Screenshot 'screenshot-1.png' shows 'Custom Error' tab in each Contact Forms at admin side.
  • Screenshot 'screenshot-2.png' shows front end view with custom error messages for each fields set by this plugin.

安裝

  1. There are two ways you can install this WordPress Plugin. 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. click on the download button the page.
  2. Now login to your WordPress site and activate the plugin. Then, select ‘edit’ option in ‘Contact Forms’.
  3. You will find a tab added to your Contact Form 7 – “Custom Error”
  4. You can set Custom Error Messages from here, for all the fields added to your contact form.

常見問題

Do this plugin use any jQuery/javascript client side validations?

No, this plugin does not use any client side validations but it allows you to do all server side.

Do users need to do any customization to set different error messages for any field?

No, I believe in very quick solution and hence I make people reach out of any customizations.

Can we use it multiple Forms in single page?

Yes, you can use it in multiple forms. Every from has different option and you can set different messages for each and every forms although if it is in single page.

評價

2021年4月13日
I was looking forward to this working to save me time, but whenever I try saving the custom error messages, nothing gets saved, not even the switch to turn them on. I had to deactivate and delete this plugin and now I have to write my own jquery. Very frustrating.
2020年8月7日
Apparently when author of this plugin decided to push update 1.2 he forgot to include the file which is required by plugin to operate. If you have this plugin active on your website, missing file renders your whole website inoperable with a critical error. Warning: require_once(/app/wp-content/plugins/cf7-custom-error-messages/cf7-custom-error-message-settings.php): failed to open stream: No such file or directory.
2018年9月27日
just one issue this plugin and reslove code file name cf7-custom-error-message.php line no 122 'email*' just remove ("*") from email Thanks ...cheers
2017年5月19日
I have two fields, a text field and a checkbox group. I head over to the "custom errors" tab and see three options: Error Message For : email 968 Error Message For Valid : email 968 Error Message For : checkbox 1 So I complete all of these, however after saving, my text for the first email option disappears. My custom message for the checkbox group also doesn't work (and yes, I have checked "enable custom messages for this form"). Could be a great plugin, if it worked.
2016年12月2日
This plugin saved me a lot of time! Great job. Small correction that i might add regarding the email type fields is that you don't need the "else" case in the file cf7-custom-error-message.php on line 128! It doesn't save the default invalid message this way that makes the error message empty. Once again good job!
閱讀全部5個評價

貢獻者及開發者

“CF7 – Custom Error Messages” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 CF7 – Custom Error Messages 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.3

  • Update plguin and solved some Error with make it supported with latest CF7 and WordPress

1.2

  • Imporove Admin option design
  • Solved missing fields message box from admin.

1.1

  • Solved some Function error which is conflict to each other
  • Add Valid Email Error Also if email field is Required.

1.0

  • Initial Release