BlogGuides · October 6, 2026 · 5 min read

Contact Form 7 Quiz: Configure Questions, Test Answers and Review Outcomes

Configure native CF7 quiz fields, test wrong and corrected answers, separate validation from spam and review the extra task for visitors.

A hand writes in a quiz answer field below a question mark, with a green shield beside the form.
Conceptual illustration; not a product screenshot or measured result.

Contact Form 7 includes a quiz field that asks a visitor to supply a short answer. It can add a small obstacle to automated submissions, but it also adds a task for every legitimate visitor. Before enabling it, define the problem you want to address and the evidence that would justify keeping the extra step.

This guide covers the native quiz syntax, answer handling, practical tests and reporting distinctions. It does not claim that a quiz eliminates spam. All example submissions should use synthetic data in an authorized staging environment.

Understand what the native quiz does

The official quiz documentation defines question-and-answer pairs separated by a pipe. Text before the pipe is the prompt; text after it is the expected answer. Use the quiz form-tag rather than inventing a required variant:

[quiz simple-check "What is 2 plus 3?|5"]

The arithmetic here is deliberately simple. Keep the surrounding text neutral, explain why the check exists, and avoid questions that depend on cultural knowledge, obscure vocabulary or knowledge of your company. The right answer should not require browsing away from a form that already contains a drafted message.

Do not surround the generated control with another label element without checking the markup: the native quiz renders its own question label. Inspect the accessible name in the browser. Additional explanatory text can sit beside the form-tag, but the input still needs a clear association with the question.

Add more than one pair only when you can maintain them

The tag supports several pairs and selects a question at random. The tag generator accepts one pair per line. For example:

[quiz simple-check "What is 2 plus 3?|5" "What is 4 plus 2?|6"]

A larger pool is not automatically a better defense. Each new pair creates another answer, translation and usability case to maintain. A bot can still target a predictable question set. Prefer a small, understandable set whose behavior you can verify over a long list that nobody checks after publication.

Keep a private configuration record of the pairs and their intended language. If the page has translated versions, test each version separately. Do not assume an answer that is natural in one language is equally clear in another. For a numeric question, check whether your chosen wording leads visitors to enter digits or words, and make the expected format obvious.

Separate a wrong answer from a spam classification

The current CF7 quiz module invalidates the quiz field when its answer check fails. That distinction matters operationally: a visitor who makes a typing mistake is not thereby proven to be a spammer.

Use CF7 event outcomes to interpret the response correctly. An invalid outcome belongs with validation issues. A spam outcome belongs with the plugin’s spam classification. A mail failure is a different delivery-stage problem. Combining them into one “failed leads” number makes it harder to decide whether to improve a question, adjust spam handling, or investigate mail configuration.

Successful mail handling also does not guarantee inbox delivery. If the form accepts the quiz answer but the notification never arrives, continue with the email troubleshooting guide. Making the question easier will not diagnose a downstream mail issue.

Use a test matrix instead of one successful answer

Case Check What a useful result tells you
Correct answer Expected form outcome and controlled destination The intended path can complete.
Wrong answer Field error and preserved message A visitor can understand the problem without retyping everything.
Blank answer Validation feedback and focus path The missing answer is explained clearly.
Corrected answer Second attempt after an error The form can recover from a simple mistake.
Different question Reload and any question replacement The visible prompt and accepted answer remain in agreement.
Mobile and keyboard use Label, zoom, input and error access The extra task remains practical on common devices.

Test spaces, case and the answer formats your visitors are likely to use. Do not promise every variation is accepted just because one worked. Record the installed CF7 version, the exact pair, the entered answer and the observed outcome. This makes a later regression reproducible without keeping real customer messages in a testing notebook.

After a failed attempt, inspect the actual prompt again before answering. The module has refill behavior, so your test should cover any refreshed question rather than assuming the first expected answer remains relevant. Test pages with caching and script optimization enabled as they will be configured at release.

Make the error path humane

A quiz can stop a legitimate inquiry if the question is ambiguous or the error message is difficult to locate. Keep the instruction close to the control. Verify that zoom does not hide it and that a keyboard user can reach the answer field and submit button in a sensible order.

Do not turn an error into an accusation. “Please check your answer” is more helpful than declaring the visitor a bot. Preserve other field values after rejection, and give people a practical alternative contact route when they cannot complete the check. Review that route as part of the page, not as an afterthought in an internal support document.

For a fuller audit, use our accessibility testing guide. The presence of a simple question does not establish that the surrounding form is accessible, and an automated scan alone cannot judge whether the wording is understandable.

Decide whether the quiz earns its place

Before rollout, write down a modest decision rule: what evidence would make you retain, revise or remove the check? Review spam handling separately from invalid answers, and include support feedback about difficulty. A change in a small number of submissions is not enough to establish a causal improvement.

Our spam reporting guide helps keep those categories separate. Svetlik Analytics for Contact Form 7, our free plugin, provides submission statistics in WordPress. Treat those trends as context; they do not establish which blocked attempts were bots or measure the quiz’s effectiveness by themselves.

The native quiz is a configuration choice with an ongoing usability cost. Keep it only when its wording, recovery path and observed operational value support that choice.

Sources

Checked October 6, 2026: official CF7 quiz guide, quiz module source, and CF7 DOM events. Module source describes the current branch; verify behavior against the version installed on your site.