
A name or company field looks simple until the notification arrives with missing information, an example name mistaken for a real answer, or a field so restrictive that a legitimate visitor cannot complete it. Contact Form 7 text fields work best when their purpose, required status and mail output are designed together.
This guide covers ordinary single-line text inputs for names, organizations and short references. Use the dedicated email, URL, telephone, number or date field when the answer has that specific meaning. The examples are configuration patterns to review on staging, not claims of tests performed on your website.
Choose the smallest useful field
Before editing the form, ask the person handling inquiries what they actually need. A full name may be enough to address the reply. An organization can be optional if individuals also contact the business. A reference number should be requested only when it helps locate an existing conversation or order.
Keep a short field specification: label, internal name, whether an answer is required, any genuine length boundary, and where the answer should appear downstream. This prevents a visually tidy form from collecting information that nobody uses. It also gives reviewers a concrete reason for each required field.
Add the native text form-tag
Open the intended form under Contact in WordPress and edit its Form tab. CF7’s text-field documentation distinguishes text from required text*. Give each input a stable, specific name. Here is a small example:
<label> Full name (required)
[text* lead-name autocomplete:name maxlength:120]
</label>
<label> Organization (optional)
[text lead-organization autocomplete:organization maxlength:160]
</label>
The limits here are illustrative choices, not recommended limits for every business. Review them against the answers your team receives. A person’s name is not reliably validated by requiring two words, ASCII letters or a narrow regular expression. Avoid turning a convenience field into an exclusion rule.
Keep the tag’s options before any quoted value, as explained in CF7 tag syntax. Use the tag generator when unsure. If brackets appear on the public page instead of a control, inspect the syntax and confirm the code is inside the CF7 template rather than an ordinary page paragraph.
Separate placeholders from real default answers
A placeholder is a hint that disappears as the visitor types. A default value is already an answer in the input. Confusing these produces misleading lead data. For example:
[text lead-organization placeholder "Company or organization"]
With placeholder, that phrase is guidance. Removing the option while retaining the quoted phrase makes it a default value. Do not populate names or organizations with invented examples merely to make the form look finished. A visitor may overlook them and submit inaccurate details.
CF7 documents the option in its placeholder guide. Keep a visible label as well: MDN explains why placeholders do not replace labels. Put essential instructions outside the input so they remain available while someone corrects an answer.
Set boundaries without guessing what valid names look like
Use required status to express a real workflow dependency. If the team can answer without an organization, leave it optional. If a reference is mandatory for one department but not another, review the workflow before adding a universal required field.
Length limits can prevent unexpectedly large single-line entries, but a limit needs a reason. A short internal project code has different requirements from a legal organization name. Avoid arbitrary minimum lengths for names. Document how staff should handle an unfamiliar answer instead of trying to reject every unusual case automatically.
Single-line text is also the wrong control for a detailed description. Link the visitor’s longer explanation to a separate message field; our textarea guide covers that decision. If you need a genuine business validation rule, use the narrower process in custom validation rather than assuming a text input verifies identity.
Map every useful answer into the notification
Adding an input does not automatically add its answer to your email template. In the Mail tab, insert matching mail-tags into a clearly labeled body:
Name: [lead-name]
Organization: [lead-organization]
Message: [your-message]
Use only tags that correspond to fields in this form. CF7’s mail setup guide explains substitution. Renaming a field later means reviewing email templates, entry storage and any connector mapping together. Changing the visible label alone is often enough when the underlying meaning remains the same.
For an optional organization, decide whether an empty labeled line is acceptable or should be omitted using the mail settings available in your configuration. Either way, staff should understand that an empty organization is an allowed answer. Do not silently manufacture a company value downstream to make a report appear complete.
Review a small, realistic answer set
On an approved staging environment, check an empty required field, an empty optional field, a short name, a longer name, punctuation, accented characters and a value at the configured limit. Use synthetic examples. Confirm the control, validation response and notification preserve the intended information.
Then check keyboard navigation, the visible label and a narrow mobile screen. Long organization names should not distort the page. Ask a colleague to read the resulting notification without seeing the form; if they cannot identify the organization or distinguish optional omissions from missing data, improve the labels in the email.
Record the form ID, template revision and expected outcomes. Follow our testing checklist for the rest of the submission path. A completed field does not prove email delivery, lead qualification or a successful CRM handoff.
Keep configuration and reporting connected
After release, compare inquiries before and after the change using the same form and date definitions. A small sample can reveal a configuration mistake, but it cannot establish that a new label improved conversion. Staff feedback about missing or confusing answers is useful alongside submission totals.
For submission statistics, review the free Svetlik Analytics for Contact Form 7 plugin and our analytics guide. Reporting helps you observe form outcomes; it does not validate the identity behind a name or guarantee that a notification reached an inbox.
