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

#   Validating field with regex when editing or creating a new adress in checkout

##

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

Less More

- Posts: 33
- Thank you received: 0
-
-

8 years 7 months ago [\#290684](#290684) by [dylis](/forum/user/4744-dylis "View dylis's Profile")  *[Validating field with regex when editing or creating a new adress in checkout](/forum/27-checkout/894327-validating-field-with-regex-when-editing-or-creating-a-new-adress-in-checkout#290684 "-- HikaShop version -- : 3.4.0 business -- Joomla version -- : 3.8.6 -- PHP version -- : 7.1.14 -- Browser(s) name and version -- : Firefox 59.0.2 (64 bits)  Hi, I found out that fields arent checked properly when user edit or create a new adress in the checkout view. An error message does appear if a mandatory field is left empty, but when the regex is not matched something is wrong (you can currently check on my site for the custom &quot;SIRET&quot; field, if you dont enter a 14 digit number, the form cant be validated but no message at all is displayed, and the &quot;telephone number&quot; field seems not to be validated at all, you can enter letters in it).  Those exact same fields works fine on the &quot;create account&quot; page, and error messages are displayed in both case (empty field or invalid field).  what to do about it ?")* was created by *[dylis](/forum/user/4744-dylis "View dylis's Profile")*

-- HikaShop version -- : 3.4.0 business
-- Joomla version -- : 3.8.6
-- PHP version -- : 7.1.14
-- Browser(s) name and version -- : Firefox 59.0.2 (64 bits)

This message contains confidential information

Hi,
I found out that fields arent checked properly when user edit or create a new adress in the checkout view. An error message does appear if a mandatory field is left empty, but when the regex is not matched something is wrong (you can currently check on my site for the custom "SIRET" field, if you dont enter a 14 digit number, the form cant be validated but no message at all is displayed, and the "telephone number" field seems not to be validated at all, you can enter letters in it).

Those exact same fields works fine on the "create account" page, and error messages are displayed in both case (empty field or invalid field).

what to do about it ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NDMyNy12YWxpZGF0aW5nLWZpZWxkLXdpdGgtcmVnZXgtd2hlbi1lZGl0aW5nLW9yLWNyZWF0aW5nLWEtbmV3LWFkcmVzcy1pbi1jaGVja291dD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14290
-
-

8 years 7 months ago [\#290719](#290719) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Validating field with regex when editing or creating a new adress in checkout](/forum/27-checkout/894327-validating-field-with-regex-when-editing-or-creating-a-new-adress-in-checkout#290719 "-- HikaShop version -- : 3.4.0 business -- Joomla version -- : 3.8.6 -- PHP version -- : 7.1.14 -- Browser(s) name and version -- : Firefox 59.0.2 (64 bits)  Hi, I found out that fields arent checked properly when user edit or create a new adress in the checkout view. An error message does appear if a mandatory field is left empty, but when the regex is not matched something is wrong (you can currently check on my site for the custom &quot;SIRET&quot; field, if you dont enter a 14 digit number, the form cant be validated but no message at all is displayed, and the &quot;telephone number&quot; field seems not to be validated at all, you can enter letters in it).  Those exact same fields works fine on the &quot;create account&quot; page, and error messages are displayed in both case (empty field or invalid field).  what to do about it ?")*

Hi,

Thank you for your feedback. I was able to reproduce the issue.
I've added a patch on our end for that.
Download again the install package on our website via the menu My account&gt;My subscriptions and install it on your website to get the patch for it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NDMyNy12YWxpZGF0aW5nLWZpZWxkLXdpdGgtcmVnZXgtd2hlbi1lZGl0aW5nLW9yLWNyZWF0aW5nLWEtbmV3LWFkcmVzcy1pbi1jaGVja291dD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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.052 seconds

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