Inline Validation

  • Posts: 63
  • Thank you received: 1
  • Hikashop Business
7 years 8 months ago #265244

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.6.5
-- PHP version -- : 7.0.16

Hello,

At the moment error messages are shown at the top if there is an error with the input.

Whats the best way to adjust this to be inline with the area of error? And also the field to be highlighted. Or do I have to write my own JS Validation scripts?

Many thanks
Tony

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 8 months ago #265265

Hi,

Regarding displaying the error messages next to the fields, it would require customization of the view files where you have the fields.
It could be done with javascript checks yes.
Regarding the fields been highlighted, that's already the case:
monosnap.com/file/lZWFKdqbVBjPUu09yMxxNnAEHy482X
It is done by adding a specific CSS class to the inputs: invalid
That's a standard class name of Joomla which normally all templates developed by Joomla should implement to highlight input fields with invalid data in them. So I suppose that the problem for that is actually coming from your template if you don't see the fields being highlighted.

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

Time to create page: 0.089 seconds
Powered by Kunena Forum