Articles on: Form Customization & Design

How to Restrict Form Fields to Only Accept English Characters in Releasit

If you want to ensure that customers only enter English characters (letters, numbers, and standard punctuation) into specific fields on your Cash on Delivery (COD) form—such as name or address fields—you can apply a regular expression (Regex) validation directly within the Releasit Form Designer.

This is particularly useful if your shipping carrier or processing system does not support special or non-Latin characters.

Step-by-Step Instructions



Open the Field Settings
Go to your Form Designer inside the Releasit app and locate the field you want to restrict (for example, Full Name or Address). Click the pencil icon to open the field settings.






Add a Regular Expression (Regex) to the Validation Field
In the field settings, scroll down to the Regex validation field. Paste the following code:

^[()a-zA-Z0-9_,. \\-"*':!%+=\\/&#@÷<>\\[\\]^;`~|{}?]*$



This expression allows:



Uppercase and lowercase English letters (a-z, A-Z)
Numbers (0-9)
Common symbols and punctuation: parentheses, commas, periods, hyphens, quotation marks, colons, exclamation points, slashes, ampersands, and others.

It prevents characters outside this set, such as accents, diacritics, or characters from non-Latin scripts (e.g., Arabic, Cyrillic, Chinese).



Final Notes



This validation will not retroactively affect past orders.
Customers who attempt to enter unsupported characters will be prompted with an error message when submitting the form.



If you need help setting up validations or adjusting this Regex for a specific use case, feel free to contact Releasit support through the app.

Updated on: 24/03/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!