[Skip to main content](#vessel-content)

#   Custom field validation in registration

##

- **[arnask](/forum/user/6752-arnask "View arnask's Profile")**
- [![arnask's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6752-arnask "View arnask's Profile") Topic Author
- [ Offline](/forum/user/6752-arnask)

Less More

- Posts: 198
- Thank you received: 4
-
-

1 year 7 months ago [\#366386](#366386) by [arnask](/forum/user/6752-arnask "View arnask's Profile")  *[Custom field validation in registration](/forum/2-general-talk-about-hikashop/909286-custom-field-validation-in-registration#366386 "Hello, i have a couple of custom fields, that need validation: 1. How to restrict special characters in field (like è,é,ê,ě,ẽ,ē,ë,ů,ű,ũ,ǔ,ü,ú,ù,û)? 2. How to restrict parts or word in field? For example if any word in field contains &quot;iene&quot; or &quot;yte&quot; or &quot;aite&quot;, etc. it should not allow 3. How to allow only 11 characters in field? And those 11 characters can be only numbers.")* was created by *[arnask](/forum/user/6752-arnask "View arnask's Profile")*

Hello, i have a couple of custom fields, that need validation:
1. How to restrict special characters in field (like è,é,ê,ě,ẽ,ē,ë,ů,ű,ũ,ǔ,ü,ú,ù,û)?
2. How to restrict parts or word in field? For example if any word in field contains "iene" or "yte" or "aite", etc. it should not allow
3. How to allow only 11 characters in field? And those 11 characters can be only numbers.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzkwOTI4Ni1jdXN0b20tZmllbGQtdmFsaWRhdGlvbi1pbi1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14280
-
-

1 year 7 months ago [\#366387](#366387) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Custom field validation in registration](/forum/2-general-talk-about-hikashop/909286-custom-field-validation-in-registration#366387 "Hello, i have a couple of custom fields, that need validation: 1. How to restrict special characters in field (like è,é,ê,ě,ẽ,ē,ë,ů,ű,ũ,ǔ,ü,ú,ù,û)? 2. How to restrict parts or word in field? For example if any word in field contains &quot;iene&quot; or &quot;yte&quot; or &quot;aite&quot;, etc. it should not allow 3. How to allow only 11 characters in field? And those 11 characters can be only numbers.")*

Hi,

You can do all that with the "Regular expression check" setting of your field if the "required" setting of the field is activated.
In it, you can provide a regular expression to restrict what can be provided by the user.
Here are the regular expressions ChatGPT proposes for each of your restrictions:
[ chatgpt.com/share/67e55938-4a64-8003-a51b-e4e17f937501](https://chatgpt.com/share/67e55938-4a64-8003-a51b-e4e17f937501)
If you want to learn how to write regular expressions, you can look here:
[ www.regular-expressions.info/tutorial.html](https://www.regular-expressions.info/tutorial.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzkwOTI4Ni1jdXN0b20tZmllbGQtdmFsaWRhdGlvbi1pbi1yZWdpc3RyYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.056 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
