BlogGuides · October 18, 2026 · 5 min read

Contact Form 7 Datalist: Suggest Answers Without Restricting Input

Add datalist suggestions to CF7 text fields, map the final answer to mail and check accessibility, browser behavior and unlisted values.

An editable form field and pencil sit above three illustrated suggestion chips and an empty custom chip.
Generated conceptual illustration; not a product screenshot or measured result.

A Contact Form 7 datalist can suggest familiar answers while leaving room for a visitor to type something else. That makes it useful for a service name, an organization type or another descriptive field where your examples help but should not define every valid answer. It is a different decision from creating a dropdown with a fixed set of choices.

This guide shows the native list: option, the HTML it references and a practical review process for the submitted value. The examples are illustrative configuration for a staging form; they have not been installed or tested on your website.

Decide whether visitors may enter another answer

Start with the receiving team’s requirement. If the answer must be one of four departments, use a controlled selection and an explicit destination mapping. Our CF7 dropdown guide covers that case. If those four choices are merely common examples and another answer is useful, a suggested text field may be appropriate.

The list does not make an optional field required or restrict it to the suggestions. The underlying input still determines its basic validation. A required text field requires an answer, while an email input requires an email-shaped value. Neither behavior establishes that a typed value belongs to your suggestion list. Document how an unfamiliar answer will be handled before the form is released.

Connect a text field to a datalist

In the Form tab of the appropriate CF7 form, keep a visible label and add a list: option. Its value must match the ID of a datalist in the same page document. The following compact example offers three fictional service descriptions:

<label>Service you are asking about
  [text* requested-service list:service-suggestions]
</label>
<datalist id="service-suggestions">
  <option value="Website maintenance"></option>
  <option value="Content migration"></option>
  <option value="Accessibility review"></option>
</datalist>
<p>Choose a suggestion or describe another service.</p>

Here, requested-service is the field name used by the submission and mail mapping. service-suggestions is the HTML relationship used by the browser. They serve different purposes and need not be identical. The asterisk makes the text field required; the datalist supplies possible starting points.

Keep IDs unique across the whole page. If the same form is embedded twice, review its rendered markup instead of assuming each copy has a separate document. Repeated IDs can make a browser associate the wrong list or otherwise behave unpredictably. See our multiple-form guide before reusing this pattern in several page sections.

Use simple values that match the reader’s language

Put the answer you want submitted in each option’s value. Additional option labels or text can display differently across browsers, so avoid depending on a hidden internal code being explained consistently by a separate visual label. Short, plain service names make the initial implementation easier to inspect and maintain.

Do not populate the list with private customer names, internal routing addresses or sensitive account identifiers. Suggestions are delivered to the browser as page content. A collapsed popup does not make them secret. Use a deliberately public vocabulary and make somebody responsible for reviewing it when the service catalog changes.

Add the answer to mail and downstream records

In the Mail tab, include the corresponding mail-tag where the team needs the answer:

Requested service: [requested-service]

Check storage, CRM and automation mappings separately. The presence of a list on screen does not configure any of those destinations. Our form-tag and mail-tag guide explains why the field definition and email template remain separate.

For reporting, preserve the original answer and define a separate grouping rule if needed. For example, “Site upkeep” might be reviewed and assigned to Maintenance. Treat that mapping as a documented business decision rather than silently rewriting the visitor’s message. A new phrase should not automatically create a department, select a privileged action or become an unreviewed reporting category.

Check browser and accessibility behavior

The native suggestion popup is controlled largely by the browser. MDN documents browser compatibility and accessibility limitations, including popup text that may not scale with page zoom and combinations of screen readers and browsers that do not announce suggestions. Keep the input usable even when the popup is unavailable.

In a staging page, use the keyboard to enter an answer without opening suggestions, then select one using the available browser interaction. Repeat on a representative mobile device and with the assistive technology your audience uses. Verify that the visible label and helper sentence explain the task without relying on a particular arrow icon, popup layout or color.

Verify the cases that affect meaning

  • Submit a listed service and confirm that exact value reaches the intended controlled destination.
  • Type an unlisted but sensible answer and verify that it remains accepted and readable.
  • Leave the required field empty and review the validation message and focus behavior.
  • Change a suggestion after selecting it and check that the final edited answer is preserved.
  • Try a browser where suggestions are unavailable and complete the same task through ordinary typing.

Use synthetic data and an authorized staging mail destination. Keep a short record of browser, form revision, input and expected result. If a downstream rule rejects an unlisted answer, either revise that rule or use a fixed selection instead. A form that promises freedom while its receiver silently rejects it creates avoidable lost work.

Measure submissions after the field contract is clear

Once the field and destinations agree, review submission trends using a consistent form definition. Svetlik Analytics for Contact Form 7 is our free plugin for submission statistics in WordPress. It does not prove that a suggestion was displayed, chosen or understood. Use the analytics guide to keep submission counts separate from usability conclusions.

Sources

Official references checked October 18, 2026: CF7 text fields and the list option, MDN datalist behavior, compatibility and accessibility, and CF7 mail configuration.