On this page
What this issue is
A name field rejects input that is perfectly valid. The cause is usually a validation rule, called a pattern or regex (a short code that describes allowed characters), such as ^[A-Za-z ]+$. That rule allows only English letters and spaces.
Names that fail include José, Müller, Zoë, O'Brien, D'Angelo, Anne-Marie, Nguyễn, Мария, محمد and 李明. The rule can live in the browser (HTML or JavaScript), on the server, or in a form plugin or a CRM field setting.
Why it costs you leads or sales
The visitor is ready to give you their details and your form tells them their own name is wrong. Many will not try again. They cannot fix the problem, because the only way to pass is to misspell their name.
Some people strip accents to get through. Then your emails, invoices and sales calls carry a wrong name. Others abandon the form. You never see those lost leads, because nothing reaches your inbox or CRM.
Example: illustrative numbers showing how a strict name rule can hurt completion for visitors whose names contain accents or apostrophes. Not real data.
The visitor types a real name, the validation rejects it, and the lead is lost.
How to check if your site has it
Submit your own form with a set of real-world names. Do it in a normal browser window and watch for an error message, a blocked submit button, or a form that submits but loses characters.
José
Müller
Zoë
O'Brien
D’Angelo (curly apostrophe)
Anne-Marie
Nguyễn
Mc Donald
Мария
李明
محمد
Γιώργος- The form shows no error and submits.
- The thank-you page or confirmation appears.
- The notification email shows the name exactly as typed.
- The CRM or spreadsheet record shows the name with accents intact (no ? or odd symbols).
- Both single and curly apostrophes work.
- Names with a space or hyphen are accepted.
How to fix it
The best rule for a name field is almost no rule. Require that it is not empty, limit the length, and accept any letter. Do not try to guess what a valid name looks like.
Find where the rule lives
Look for a
patternattribute on the input, JavaScript validation, a form plugin setting, and any server-side check. Fix every layer, or the strictest one still blocks people.Replace the allowed-characters rule
Use a Unicode-aware pattern that accepts letters from any script, plus spaces, apostrophes, hyphens and full stops. Or remove the pattern entirely.
Allow a sensible length
Set a minimum of 1 and a maximum of around 100 characters. Some people have one name only, so do not force a separate last name unless you truly need it.
Check storage and email
Make sure your database, CRM and email templates use UTF-8 so accents and other scripts are saved and shown correctly.
Retest with the sample names
Submit each test name and check the notification and CRM record.
<input type="text" name="first_name" autocomplete="given-name"
required maxlength="100"
pattern="[\p{L}\p{M}' ’.\-]+" />
<!-- In current browsers the pattern attribute is compiled with the "v" flag, so inside a class the hyphen must be escaped (\-), as above. -->const nameOk = (value) =>
value.trim().length > 0 &&
value.length <= 100 &&
/^[\p{L}\p{M}' ’.\-\s]+$/u.test(value);
nameOk("O'Brien"); // true
nameOk('李明'); // true
nameOk('José'); // true<?php
$name = trim($_POST['first_name'] ?? '');
$valid = $name !== ''
&& mb_strlen($name, 'UTF-8') <= 100
&& preg_match('/^[\p{L}\p{M}\' ’.\-]+$/u', $name);Check your form plugin
In Contact Form 7, look at the field tag (for example
[text* your-name]) and any custom validation code in your theme. In Gravity Forms, Fluent Forms or WPForms, open the field settings and remove any custom validation or regex. Plugin text fields normally accept Unicode by default.Search custom code
Search your theme and plugins for
A-Za-zorctype_alpha, which are common causes. Replace them with the Unicode patterns above.
Check theme form code
Shopify's standard customer and checkout name fields accept accents. If a custom form or app in your theme has a
patternattribute on the name input, edit it in Online Store > Themes > Edit code, or in the app's settings.
Look for custom HTML tags
GTM does not validate names itself. Check Custom HTML tags for scripts that add validation or strip characters from form fields, and remove or fix them.
Check input settings and embeds
Native Webflow text fields accept any characters. If you added custom code or an embed with a
patternattribute, edit or remove it in the Element settings or Embed code.
Review form field settings
In the form builder, select the name field and check its settings for custom validation. Also check custom code blocks on the page for scripts that restrict characters.
Check Wix Forms and Velo
Open the form field settings and look for validation. If you use Velo (Wix's code tool), search your page code for regex checks on the name field.
Check code injection
Squarespace form blocks accept most characters. If you see errors, check Code Injection and Code Blocks for custom validation scripts.
Fix browser and server rules
Update the
patternattribute, any JavaScript validator and the server-side check using the snippets above. Make sure pages are served as UTF-8 and the database column uses a UTF-8 collation such as utf8mb4.
Before
- Pattern allows only A-Z and a-z.
- José, O'Brien and 李明 show an error.
- Visitors leave or change their name.
After
- Pattern accepts any letter, mark, apostrophe and hyphen.
- All test names submit.
- Names reach the CRM exactly as typed.
How to confirm it's fixed
Resubmit each test name
Use the sample list in a fresh browser window, on both desktop and mobile.
Check the inbox
Confirm the notification email shows the name correctly.
Check the CRM
Open the new record and confirm accents and non-Latin characters are intact.
Delete test entries
Remove the test leads so they do not enter your sales follow-up.
How to prevent it happening again
- Never use A-Z-only patterns for names.
- Add the sample names to your form test routine for every new form.
- Retest forms after plugin, theme or form builder updates.
- Keep UTF-8 everywhere: page, database, CRM and email.
- Ask developers and agencies not to add name regex without a review.
- Use one full name field if you do not need first and last separately.
How FunnelGuard handles this
FunnelGuard does not check this yet. Testing name fields with accents, apostrophes and non-Latin scripts is a possible future check, not a current feature.
What FunnelGuard does today is run your real lead form journey on a schedule from the EU or the US, check each step, and confirm that a test lead reaches your inbox and CRM. If a form breaks outright, for example the submit fails or the email never arrives, a failure is re-checked from a second region and you get one alert with a screenshot and a likely cause. It does not test for rejected names specifically.
To watch for this issue yourself, add the sample names to a manual test every time you change a form, and review your form tool's error or abandonment reports for spikes on the name field. A free read-only website audit and a Free plan (1 site, 2 journeys, daily checks, no card) are available if you want monitoring of the wider form journey.
Questions people ask
Why does my form say my name is invalid?
The form probably uses a validation rule that only allows plain A-Z letters. Names with accents, apostrophes, hyphens or non-Latin characters then fail. Loosen the rule to accept any Unicode letter, or remove the pattern.
How do I allow apostrophes in a name field?
Add the apostrophe to the allowed characters, and include the curly version (’) as well as the straight one ('). A pattern such as [\p{L}\p{M}' ’.\-]+ with the Unicode flag allows letters, accents, apostrophes, spaces, full stops and hyphens.
What is the best regex for validating names?
Usually none. Names are too varied to validate by pattern. Require the field to be non-empty, cap the length at about 100 characters, and accept any Unicode letter. Strict rules reject real customers.
Why do accented characters turn into question marks after I submit a form?
That is an encoding problem, not validation. Your page, database or CRM is not using UTF-8, so characters like é are lost or garbled. Set UTF-8 (for example utf8mb4 in MySQL) at every step.
Should I make last name required?
Only if you truly need it. Some people have a single name, and a forced last name field can push them to type filler text. A single full name field is often simpler and avoids splitting names wrongly.
How do I test a form with non-English names?
Submit it with a list of names such as José, Müller, O'Brien, Nguyễn, Мария and 李明. Check that the form accepts them, then confirm the email and CRM record show them correctly.
Does FunnelGuard check if my form rejects accented names?
No. This is not a current FunnelGuard check. FunnelGuard tests your form journey and whether test leads reach your inbox and CRM, but it does not try names with accents or non-Latin scripts, so test those by hand.
Related issues
- PRF-366Character encoding broken (mojibake, é instead of é)Fix guide
- PRF-353Untranslated form labels/errors on translated pageFix guide
- PRF-360Phone field forces one country formatFix guide
- PRF-361Address form requires US-style state/ZIP for other countriesFix guide
- PRF-362Postal code validation rejects valid foreign codesFix guide
- PRF-348Visitor sees wrong language version (geo/browser redirect wrong)Fix guide