Skip to main content

Inline Validation

More
9 years 6 months ago #265244 by mikekiy
Inline Validation was created by mikekiy
-- 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.

More
9 years 6 months ago #265265 by nicolas
Replied by nicolas on topic Inline Validation
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.161 seconds
Powered by Kunena Forum