Custom field regex - valid class

  • Posts: 91
  • Thank you received: 5
1 year 6 months ago #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 "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

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 6 months ago #351609

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.

  • Posts: 91
  • Thank you received: 5
1 year 6 months ago #351614

Thank you.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum