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

#   Custom field regex - valid class

##

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

Less More

- Posts: 91
- Thank you received: 5
-
-

3 years 6 months ago [\#351604](#351604) by [bolando](/forum/user/38611-bolando "View bolando's Profile")  *[Custom field regex - valid class](/forum/27-checkout/906372-custom-field-regex-valid-class#351604 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 4.3.1 -- PHP version -- : 7.4.33 -- Browser(s) name and version -- : Chrome latest  Hello,  I created a custom field regex and custom error message - for a telephone field. Regex works, custom error message appears, but the field has still a &quot;valid&quot; class, so it's not clear for user which field is invalid. Why is that so? I attach a screenshot.  Thanks for your help")* was created by *[bolando](/forum/user/38611-bolando "View bolando's Profile")*

-- HikaShop version -- : 4.7.2
-- Joomla version -- : 4.3.1
-- PHP version -- : 7.4.33
-- Browser(s) name and version -- : Chrome latest

Hello,

I created a custom field regex and custom error message - for a telephone field.
Regex works, custom error message appears, but the field has still a "valid" class, so it's not clear for user which field is invalid. Why is that so? I attach a screenshot.

Thanks for your help

- [ ![valid.jpg](/forum/attachment/57020) ](/forum/attachment/57020 "valid.jpg") [ ](/forum/attachment/57020?download=1 "valid.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNjM3Mi1jdXN0b20tZmllbGQtcmVnZXgtdmFsaWQtY2xhc3M/dG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86586
- Thank you received: 14325
-
-

3 years 6 months ago [\#351609](#351609) 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 regex - valid class](/forum/27-checkout/906372-custom-field-regex-valid-class#351609 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 4.3.1 -- PHP version -- : 7.4.33 -- Browser(s) name and version -- : Chrome latest  Hello,  I created a custom field regex and custom error message - for a telephone field. Regex works, custom error message appears, but the field has still a &quot;valid&quot; class, so it's not clear for user which field is invalid. Why is that so? I attach a screenshot.  Thanks for your help")*

Hi,

Thanks for your feedback.
We integrated with the Joomla javascript input validation system so that it adds the valid/invalid classes when the inputs are filled / empty. But we didn't integrate with it for regexs. That's a good idea to improve this area.
We'll see what we can do for the next version of HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNjM3Mi1jdXN0b20tZmllbGQtcmVnZXgtdmFsaWQtY2xhc3M/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 91
- Thank you received: 5
-
-

3 years 6 months ago [\#351614](#351614) by [bolando](/forum/user/38611-bolando "View bolando's Profile")  Replied by *[bolando](/forum/user/38611-bolando "View bolando's Profile")* on topic *[Custom field regex - valid class](/forum/27-checkout/906372-custom-field-regex-valid-class#351614 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 4.3.1 -- PHP version -- : 7.4.33 -- Browser(s) name and version -- : Chrome latest  Hello,  I created a custom field regex and custom error message - for a telephone field. Regex works, custom error message appears, but the field has still a &quot;valid&quot; class, so it's not clear for user which field is invalid. Why is that so? I attach a screenshot.  Thanks for your help")*

Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNjM3Mi1jdXN0b20tZmllbGQtcmVnZXgtdmFsaWQtY2xhc3M/dG1wbD1tYXJrZG93bg==) 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.072 seconds

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