Quiz

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 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 this quiz feature, 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:

[quiz capital-quiz "The capital of Japan?|Tokyo"]

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.

quiz sample

If your senders prefer math, change the tag to look something like:

[quiz math-quiz "12+48=?|60"]

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.

[quiz random-capital-quiz "The capital of Japan?|Tokyo"
                        "The capital of France?|Paris"
                        "The capital of Madagascar?|Antananarivo"]
Available options for quiz
Option Examples Description
(size)/(maxlength) 40/100
20/
/50
Field size and max length. You can omit one of them.
id:(id) id:foo id attribute value of the input element.
class:(class) class:bar class attribute value of the input element. To set two or more classes, you can use multiple class: option, like [quiz capital-quiz class:y2008 class:m01 class:d01 "The capital of Japan?|Tokyo"].
tabindex:(num) tabindex:10 tabindex attribute value of the input element.

Example:

[quiz capital-quiz 10/20 id:qatest "The capital of Japan?|Tokyo"]

In the tag generator for the quiz tag, make sure to enter one pair per line.

tag generator for quiz screenshot

Just another contact form plugin for WordPress. Simple but flexible.