Skip to main content

Custom field regex - valid class

3 years 5 months ago #351604 by bolando
-- 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

Please Log in or Create an account to join the conversation.

3 years 5 months ago #351609 by nicolas
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 or Create an account to join the conversation.

3 years 5 months ago #351614 by bolando
Thank you.

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum