On this page
What this issue is
Your form shows an error such as "Please enter a valid name" when a visitor types a name with an accent (é, ü, ñ), an apostrophe (O'Brien), a hyphen (Smith-Jones), a space, or letters outside the Latin alphabet (Chinese, Arabic, Cyrillic). The visitor did nothing wrong. The form's rule just did not expect their name.
A typical culprit is a pattern like ^[A-Za-z]+$. It matches only 26 unaccented letters. No spaces, no accents, no apostrophes. A related fault is silent: the form accepts the name but the database or CRM stores it as José or Zo?. That is an encoding problem, and it needs a different fix (see below).
Why it costs you leads or sales
People with accented or non-English names are told their own name is invalid. Many give up. Others type a fake or stripped version (Jose instead of José), which hurts personalisation, email greetings and CRM matching. The loss is hardest to notice because rejected visitors never show up in your lead list. You only see a slightly lower form completion rate, mostly in markets with many such names.
- Ad or search clickVisitor lands on the page
- Fills the formTypes "Zoë O'Brien"
- Name validationPattern allows only A-Z
- SubmissionNever sent
- CRM leadNever created
The visitor does everything right until the name validation rejects their name.
Example: illustrative numbers showing how a strict rule can depress completion for visitors with accented or hyphenated names.
How to check if your site has it
Test the form yourself with a set of realistic names. Use a test email address you control and mark the entries as tests so your sales team can ignore them.
| Name to enter | What it tests |
|---|---|
| José García | Accents and a space |
| Zoë Müller | Diaeresis and umlaut |
| Sinéad O'Brien | Apostrophe (straight ') |
| Anne-Marie Smith-Jones | Hyphens |
| Nguyễn Thị Hương | Stacked Vietnamese diacritics |
| Łukasz Żółć | Polish letters |
| 李小龍 | Chinese characters |
| محمد علي | Right-to-left script |
Submit each test name
Fill the form with each name from the table and watch for inline errors or a blocked submit button.
Check the thank-you page and email
Confirm the form went through and the notification email shows the name correctly, not as garbled characters.
Check the CRM or database
Open the new lead record. Look for question marks, boxes or strings like é in place of accents.
Inspect the rule if it fails
Right-click the field, choose Inspect, and look for a
patternattribute on the input. Also search your theme or plugin scripts for regex such as[a-zA-Z].
How to fix it
The best rule is often no rule. Names are too varied to validate well. If you must validate, only require that the field is not empty and let people type any letters, spaces, hyphens and apostrophes.
// \p{L} = any letter in any language, \p{M} = accent marks
const nameOk = /^[\p{L}\p{M}][\p{L}\p{M}\s'’.-]*$/u;
console.log(nameOk.test("Zoë O'Brien")); // true
console.log(nameOk.test("Nguyễn Thị Hương")); // true
console.log(nameOk.test("Anne-Marie")); // true<label for="name">Full name</label>
<input type="text" id="name" name="name" autocomplete="name" required>Check the form plugin's field settings
In Contact Form 7, look at the name tag in the form editor and remove any custom
patternor validation add-on. In Gravity Forms, Ninja Forms, WPForms or Fluent Forms, open the Name field and remove input masks or custom validation.Search the theme and plugins for the rule
Search your theme files and custom code snippets for
a-zA-Z. Replace the pattern with the Unicode version above or delete it.Check the database collation
If names save as garbled text, make sure the database tables and
DB_CHARSETin wp-config.php use utf8mb4.
Check the theme's form or checkout script
In Online Store > Themes > Edit code, search for
pattern=ora-zA-Zin the contact or customer form sections and remove the restriction.Check installed form apps
If a form app is used, open its field settings and turn off any name-only-letters validation.
Look for injected validation tags
Open Tags and look for Custom HTML tags that add form validation. Edit the regex to use
\p{L}with theuflag, or pause the tag and test.
Check the input element
Select the name field, open the element settings and make sure no custom attribute named
patternis set.Check custom code
In Project settings > Custom code and on page-level embeds, search for scripts that validate names and update the regex.
Review the form builder field
In Sites > Forms, open the First name or Full name field and confirm no custom validation is applied.
Check custom code blocks
Search custom JavaScript on the funnel page for name regex rules and replace them.
Check the form field type
Use the standard short text field for names rather than a restricted type. If you use Velo, look in page code for
.test(calls with an A-Z pattern.
Check Code Injection
In Website > Pages > Custom code (Code Injection), search for scripts that validate the name field. Native Squarespace form fields do not need extra rules.
Fix the client-side rule
Remove the
patternattribute or swap the regex for the Unicode version shown above.Fix the server-side rule
The same restrictive regex often exists in your backend. Update it too, or the server will still reject the name.
Use UTF-8 everywhere
Send
Content-Type: text/html; charset=utf-8, add<meta charset="utf-8">, and use utf8mb4 for MySQL tables.
Before
- Pattern allows only A-Z
- José, O'Brien and Nguyễn are rejected
- Visitors leave or type fake names
After
- Pattern allows any letter, space, hyphen and apostrophe
- Real names are accepted
- CRM stores names as typed
How to confirm it's fixed
- Every name in the test table submits without an error
- The thank-you page or success message appears
- The notification email shows accents correctly
- The CRM record shows the exact name typed
- Test on mobile as well as desktop, since keyboards insert curly apostrophes (’)
- Test in a second browser to rule out cached scripts
How to prevent it happening again
- Keep a standard list of test names and use it whenever you build or edit a form
- Avoid pattern rules on name fields unless there is a clear need
- Make sure front-end and back-end validation agree
- Re-test after plugin, theme or form tool updates
- Use utf8mb4 and UTF-8 for every new database and integration
- Accept both straight (') and curly (’) apostrophes
How FunnelGuard handles this
FunnelGuard does not check this yet. Testing names with accents and special characters is a possible future check, but today it is not part of what FunnelGuard runs.
What FunnelGuard does do is run your real lead form journey on a schedule with a robot visitor. It checks each step, the tracking hits sent to ad and analytics platforms, and whether test leads reach your inbox and CRM. If a form breaks outright, a failure is re-checked from a second region before one alert goes out with a screenshot and a likely cause. That would not reveal a rule that rejects only certain names, because the test uses its own standard test data.
To watch for this yourself, rerun the test-name table after any form change, and compare form starts with submissions in GA4 or your form tool's reports. Look for validation errors in the form tool's logs if it provides them. Ask your sales team to tell you when a lead's name looks garbled or stripped of accents.
Frequently asked questions
Questions people ask
Why is my form rejecting names with accents?
The name field probably has a validation rule that allows only the letters A-Z. It can be a pattern attribute, a plugin setting, a theme script or a server-side regex. Replace it with a rule that accepts Unicode letters, or remove it.
How do I allow apostrophes and hyphens in a name field?
Use a pattern that permits them, such as ^[\p{L}\p{M}][\p{L}\p{M}\s'’.-]*$ with the u flag in JavaScript. Allow both the straight apostrophe (') and the curly one (’), because phone keyboards often insert the curly version.
What regex should I use to validate a name?
The safest option is to only require that the field is not empty. If you need a rule, use Unicode property escapes like \p{L} for letters and \p{M} for accent marks, plus spaces, hyphens, apostrophes and full stops. Avoid [A-Za-z] because it excludes most of the world's names.
Why do accented names show up as question marks or é in my CRM?
That is a character encoding mismatch, not a validation rule. Somewhere between the form, the server, the database and the CRM, text is not handled as UTF-8. Use UTF-8 on pages and utf8mb4 in MySQL, and check any integration that passes the data along.
Should I validate names at all?
Usually minimal validation is best. Real names can be short, long, hyphenated, one word or in any script, so strict rules reject valid people. Requiring a non-empty value and relying on spam protection is safer than blocking characters.
How can I test whether my contact form accepts international names?
Submit a set of test names such as José García, Sinéad O'Brien, Anne-Marie Smith-Jones, Nguyễn Thị Hương and 李小龍. Check that each one submits, appears correctly in the notification email and is stored properly in your CRM.
Does FunnelGuard check for names with special characters being rejected?
No. FunnelGuard does not check this yet, though it is a possible future check. It does run your real form journey on a schedule and checks steps, tracking and whether test leads arrive, so it would catch a form that fails outright.
Related issues
- CNV-002Form field renamed or removed so the lead loses dataFix guide
- CNV-003Required field marked optional (or optional marked required)Fix guide
- CNV-006Phone field rejects international formats (+44, +971)Fix guide
- CNV-018Autofill fills wrong fields (bad autocomplete attributes)Fix guide
- CNV-025Character limit cuts off message fieldFix guide
- CNV-004Field labels missing or placeholder-only, field purpose unclearFix guide