Contact Form 7 1.9.2 is now available. This version includes a new type of tag for customizable quiz fields. This new version also contains stylesheets for languages that are written in right-to-left.
Quiz Tag
In order to distinguish a form submission by a computer program versus one from a human, and also to block them, you’ve been able to use CAPTCHAs in the past with Contact Form 7. However, CAPTCHAs are hard to use in some cases. Some people have difficulty in answering CAPCHA, or simply dislike answering them. Managing CAPTCHA needs graphic libraries installed on the server, which are not always provided.
In some cases, a simpler approach is more suitable. With the new quiz tag, you can do it by using question/answer testing with simple text that you have the flexibility to create.
For example, when you insert this tag into your form:
The content before the pipe (‘|’) character (The capital of Japan?) will be used as the question. The content after the pipe (Tokyo) will be used as the expected answer.

If your senders prefer math, change the tag to look something like:
You can use any question and answer.
To submit the form, the sender has to input the correct answer.
When you put multiple question/answer pairs in a tag, one of the pairs will be selected at random.
In the tag generator for the quiz tag, make sure to enter one pair per line.

RTL Language Support for Stylesheet
Most languages are written to be read in left-to-right (LTR) format. Some languages are written in right-to-left (RTL) direction, like Persian and Arabic. The stylesheet of Contact Form 7 wasn’t initially developed considering RTL languages, so it has failed to display correctly in those environments.
RTL support for stylesheets is now implemented and based on the code Mohammad Musavi kindly sent to me. If you are working in an RTL language environment, please send me feedback on whether or not it is working correctly; I’m not familiar with RTL languages and couldn’t test it thoroughly.
Translation Updates
New addition:
- Vietnamese (vi) – Thanh Hải, Hà
Thank you!
(以下、日本語)
Contact Form 7 1.9.2 をリリースしました。新しいクイズのタグが加わりました。それから右から左に書く言語のためのスタイルシートも導入しています。
クイズのタグ
いわゆるボットと呼ばれるようなコンピュータープログラムによる自動フォーム送信を、本物の人間の手によるものと見分けてそれをブロックする方法としては、これまでの Contact Form 7 でも CAPTCHA を使えば可能だったわけですが、CAPTCHA というのは場合によっては使いにくいものでもあります。CAPTCHA の文字の識別が困難な人もいますし、そもそも CAPTCHA が嫌いだという人も多いのです。それから CAPTCHA を使うためにはサーバーに必要な画像処理ライブラリがインストールされていないといけませんが、そういうものが入ってないサーバーを使うしかない場合だってあるわけですし。
それで、中にはもっとシンプルな方法を使ったほうが都合がいい場合だってあるわけです。今回導入のクイズタグを使えば、人間なら答えられそうな簡単な質問と答えを考えるだけで CAPTCHA の代わりができてしまいます。
たとえば次のようなタグをフォームに埋め込んだとしましょう:
パイプ文字(‘|’)より前(日本の首都は?)が質問で、パイプより後(東京)が答えになります。
地理より算数が好きなら次のようにしてもいいです:
質問と答えは何でも構いません。
フォームを送信する際は、正しい答えを入力しないと送信できなくなります。
次のように質問と答えのペアを複数並べたら、そのうちのひとつがランダムに選ばれて使用されます:
タグジェネレーターでクイズタグを生成する際、問答のペアを複数追加する場合はクイズの欄の一行に一ペアずつ書くようにしてください。
スタイルシートでの RTL 言語のサポート
世界の大半の言語は左から右に向かって書くわけですが、その反対に左から右に向かって書く(RTL; Right-To-Left)言語もなかにはあるわけです(ペルシャ語とかアラビア語とか)。Contact Form 7 のスタイルシートは作るときに RTL 言語を考慮していなかったので、それらの言語環境で使うと表示が崩れてしまっていました。
Mohammad Musavi さんが親切にも RTL に対応したスタイルシートを作って送ってくれたので、今回のリリースでそれを取り込んでみました。RTL の言語を使っている方はうまく機能しているかどうかぜひフィードバックを送ってください。プラグイン作者は日本人なので十分にテストできていないんです。
翻訳の更新
新しく追加されたもの:
- ベトナム語 (vi) – Thanh Hải, Hà
いつもありがとう。
53 replies on “Contact Form 7 1.9.2”
hey… i still like the contact form a lot, thanks for shaaring it.
One minor comment is that the options apear under the tools menu. In my logic it would seem normal to appear under the plugins menu.
thanks for this great and simple form!
unfortunately, something’s wrong with the automatic upgrade path (version 2.7), a .zip file gets downloaded to wp-content, instead of directly into the plugins/contact-form-7 folder.
Thanks for this plugin! It’s really simple to use for the simple things I need. How do you safely upgrade from the previous version (7.1.9.1) to this version? The auto upgrade does not seem to work, so how to do it manually? Is it safe to just replace the old folder with the new one? What about my already defined forms – are they preserved?
@twopeak you think so? but putting under the plugins seems not standard.
@Longbow all data is saved on the database and in the outside folder, so you can manually replace the plugin folder in safety.
I just installed the latest version of contact form (1/22/2009). It is great. I have read the FAQ’s and scoured the comments and can’t find the answer I need.
Question:
When I have a checkbox in the form and someone selects one of the options (in the case 1, 2, 3, or 4), how do I get the result of the checkbox choice into the email message that I receive?
Thanks
Tom
Hi, thank you so much for this plugin!
I’m using it on my personal website ( and other sites ), and it’s a great plugin. Simple but complete!
Bye,
Massimo
Hey,
Any word on having the capability to use “https://” urls?
If I were you I’d setup a forum so that people can post their bugs / support questions..
Thanks, JoeM
How can I shrink the form a bit to fit in the side widget? It runs off the page.
First, thank you for plugin, it is great …
I would like to know how to use to send files … I create a tag, and put it in the field of files, e-mail arrives but without the file…
thankz again
Hi miyoshi,
Thanks for adding the quiz support! I set up a random math quiz and it looks great except for 1 small quirk:
If I enter the wrong answer into the quiz, the red “error” outline is only a few pixels tall and covers the quiz instead of surrounding it properly.
Is anyone else experiencing this or is it my install?
Here’s my Quiz code:
[quiz random-math-quiz 6/ "4 + 2 = ?|6" "7 + 1 = ?|8" "3 + 4 = ?|7" "5 + 3 = ?|8" "2 + 7 = ?|9"]
BTW, I was able to use the Automatic Upgrade w/o any problems.
-Mordaga
Regarding the question I submitted previously, I experimented and found out what to do.
Thanks
Tom
“Question:
When I have a checkbox in the form and someone selects one of the options (in the case 1, 2, 3, or 4), how do I get the result of the checkbox choice into the email message that I receive?”
@Tom When your form tag is
[checkbox checkboxname "Choice1" "Choice2" "Choice3"], insert[checkboxname]into your message body of your email. It’s also under this rule.@Jim you can get it by setting size property to text field or using CSS stylesheet.
@FranChico may I confirm the tags you used? And also, I’ve heard that some hosting servers have setting preventing file attachment, so I suppose you to contact the server admin as well.
@Mordaga I can’t get what the problem yet, so could you tell me the URL? I’ll take a look. FYI, the size and other styles of the error message are specified in CSS stylesheet so you can override as you like.
@miyoshi, i´m using in form:
Arquivo: [file teste]
i put [teste] in ‘file attachments’ field
wpcf7_uploads is created and is writable (with 777)
Firebug not identified any error page that has the form
sorry my bad english
and
— *** thanks again *** —
@FranChico, the tags are correct, and other things also seems okay. So I think it’s highly possible that the mail server’s setting is preventing use of attachment.
I’ve got some reports from users who had the same issue and fixed it by changing server setting, but I’ve not heard what is the cause in detail. If there are other user who knows it, please tell us.
Bad English? Me too! :)
@miyoshi, i believe that the problem has solve…
simply delete a condition of the file “wp-contact-form-7.php” …
remove:
if (version_compare ($ wp_version,’2 .7-beta1 ‘,'<‘)) / / wp_mail () file uploading option is not suppoted
$ files = array ();
the file now has become attached successfully
obviously I’m using the latest version of wordpress…
bye…
Thanks for contact form 7 – it is elegant.
I am a relative wp newbie. I used your plugin for my client at http://AppPrep.com/upload-docs to let users upload files that gets emailed.
Upon successful user upload, client would like the browser to automatically redirect to http://AppPrep.com/help
Is that possible by editing something?
Appreciate any ideas. Thanks.
Hello and thank for such a great plugin.
I am having a problem that when viewing in IE error message works but the offset red outlined error box’s appear behind the form and are empty of text.
Has anyone else had this issue?
Is there a fix.
Terry
@FranChico Really? ?!?!?! Curious.
@AppPrep it’s not so easy but of course you can do it if you edit some codes. Probably the simplest way is editting contact-form-7.js file. Let it redirect after Ajax process succeeded.
@Terry, check the bottom of the admin panel of the plugin, you’ll see the Messages section, right? Isn’t there a blank field in it? Please fill in it.
thank you for the quick response.
No, the field is not blank.
everything works great in firefox. but in internet explorer if someone leaves a required field blank or does not use proper email the red outlined error box shows up behind the form and is blank an out of alignment.
I just checked the contact form that was mentioned in another post (by AppPrep) and if viewed in Internet Explorer and a field is left blank the error message is broke like mine.
http://appprep.com/contact/
it works great in firefox, but in internet explorer the error message is broke.
Terry, when you see some problems on a browser (IE, in this case) and no problem on another (Firefox), you should doubt the HTML validity first. Actually almost all of such cases I’v seen is result of it. XHTML-CSS Validator
miyoshi,
Wanted to say I really like this plugin, I was using cforms, but this one is so much less bloated.
A question though, I’m trying to make it so select menus can have custom values, I want to use that to be able to use the pulldown to decide who to send the email to.
Inside the function form_element_replace_callback
Inside the case ‘select*’:
I added the line
$pipes = $this->get_pipes($raw_values);
and changed this line
$html .= ” . $value . ”;
to
$html .= ” . $value . ”;
That all works, now I can have select options in the format of “Name|custom@email.com” etc.
The problem is I can’t figure out how use that custom field
The select’s name is “department”, but when I use [department], it always shows up blank.
Any ideas?
Thanks!
Ian
In those above lines that look identical, the part I changed was
attribute_escape($value)
to
attribute_escape($pipes[$value])
Greetings,
This is a very nice plugin. Thank you. I especially like the addition of the quiz tag. I would like to have some fun with the quiz questions, but it may mean not everyone will know the answer to every question. Might there be some way to add a button that when clicked it would change the quiz question?
Thanks again for all the work that must have gone into this plugin.
By the way, I figured out how to use custom values for select boxes, I emailed you how to do it, hopefully it’s easy enough you could add it into your next release.
Thanks again!
Ian
Hi Ian, thank you. I received the mail. BTW, have you read this post? I’m afraid I didn’t understand your point completely, but is it related to that the post shows? Sorry if it’s my misunderstanding.
Well I’ll be darned, it was already built in!
That post is exactly what I was talking about :-)
I searched for (what I thought was) quite a bit, but didn’t find anything, that’s why I did it myself.
My only suggestion would be to make that functionality more obvious, maybe mention it in the “Generate Tag” box.
Anyway, thanks!
Ian
I tried installing from the automatic plugin installer with WP 2.7, and I’m stuck trying to configure my mail server. Basically, my mail server settings are correct, I tested with a basic php script and mail was sent, however, Contact Form is unable to connect.
Here’s the real problem I’m having – because I installed through the automatic plugin install feature, the plugin is stuck in the configure screen and is completely blocking me from using automatic update for other plugins. How do I get rid of this plugin manually? Is there a db row somewhere that I need to delete?
Andrew, just remove wp-content/plugins/contact-form-7 directory.
Hi Miyoshi,
Thanks for the update my friend. The RTL is working like a charm. The only problem I’m experiencing is that in IE 7 (haven’t been able to check IE 6), the first text field in a form isn’t displayed inline with other form elements.
One other thing, have you had any records of Server Overload resulting from Contact Form 7?
My website was suspended today because of Php processor overload. I’m researching the cause of this problem. Any idea how I can track this issue?
I installed the 1.9.2 and I’m using wordpress 2.7 and now the main menu for contact form won’t appear. If I click on the tools menu and then contact form 7 I get an error saying that
Fatal error: management_page() [function.require]: Failed opening required (the plugin directory/contact-form-7/includes/admin-panel.php’ (include_path=’.:/usr/local/lib/php’)on line 705.
I’m running the plugin from a folder outside my wordpress installation using symbolic links to point to my wp-content/ folder. Any help would be appreciated.
hi Miyushi. I love the plugin. However, i don’t if what is wrong with it. Everytime I receive messages thru the contact form, i couldn’t see the sender’s email address, instead, it is the site admin’s email still. how do i tweak that? thanks!
How to insert custom fields ??? I could´t find the explanation…
Great plugin. One thing though, is there a way to get it to not use AJAX? I’m converting a static site to WP and the existing contact form has a results page. We setup that page as a “Goal” for Google Analytics. I need to figure out a way to do that with Contact Form 7. Mainly I just need to be able to define a specific page as the goal. So somehow I need the contact form to call a specific page or redirect when the form is sucessfully completed. Any ideas on how to do that?
Thanks
Awesome Plugin. I do have a question I would like to put a checkbox and a text field on the sameline, but it is not working correctly.
example: [checkbox checkbox-442 “I will call #”] [text text-852 5/ id:call] friends and ask them to help
Thanks
Hi Miyoshi,
Suddenly after updating to 1.9.2, my form submissions are displaying HTML tags with the form inputs.
Here’s my template:
body {direction:rtl; text-align:right;}
جناب آقای مهندس موسوی،
با سلام،
خواهشمند است نسبت به برآورد هزینه متن الصاقی اعلام نظر فرمائید:
نام و نام خانوادگی: [your-name]
تلفن ثابت: [landline]
تلفن همراه: [cell-phone]
پست الکترونیک: [your-email]
نحوه آشنایی با سایت: [found-you] [other]
خدمت درخواستی: [service]
عنوان مطلب: [title]
نحوه دریافت ترجمه: [delivery] [address]
زمانبندی: [time]
Superb plugin. Simple, easy yet powerfull.
Hello Miyoshi,
definitely a bug. I reverted back to 1.9.1 and the form results are working ok again. 1.9.2 breaks the HTML markup.
Hello Myoshi,
Is there a way to get radio options to appear on separate lines instead of one line?
Ex:
_ option1
_ option2
…instead of…
_ option1 _ option2
I tried dividing up the tag, e.g., [radio name1 “option1”][radio name1 “option2”], which works fine for presentation; however, it also seems to prevent the data from appearing in the resulting email.
Miyoshi,
Long time no see, everything ok bro?
I had a wish for CF 7:
It would be great if the form had an additional functionality of calculating basic math functions and displaying them on screen or additionally passing on the result to the form results.
For instance:
We have a drop-down menu consisting of variable A=10, B=15 and C=20
Second variable is X which can be entered by the user.
Now Ajax calculates A x X and gives Y for the result which is either displayed on screen or passed on to the results email using the variable [Y]
Now it would even be better if it can handle more complex calculations than the previous one.
Example:
W=4%
(A x X) + W(AX) = Y
Is it possible possible to forward to a “Thank You Page” when the submit button is clicked? How would I do this. The one solution on WP.org crashes WP. Anyhelp would be great. This has been bugging me for a week.
The other option is a pop-up window when the form has been submitted. I have a very long form and people keep submitting the form 2-3 times because the are not aware the form has been sent.
Thanks
Dan
I’ve installed the plugin and it appears to work (Your message was sent successfully. Thanks.) but I receive no email.
What do I do now?
If you have mootools on the same page, it won’t display confirmation message, i.e.Your message was sent successfully. Thanks. Instead, it redirects your current page to a blank page, with this: captcha: null, quiz: null.
Can you make this plugin compatible with mootools library? For example, on backend you can choose the library: Default, Mootools, or JQuery?
the problem wasn’t the library, it that I placed this in the head: .
I use this so i can keep my relative URLs in the post when using permalinks, is there a way around this?