Product attribute text input validation

6 years ago
hi.

i want to validate the text input fields. i need them to be in a certain range for certain products. if possible i don't want to hard code my values in Nop.Web.Views._ProductAttributes.cshtml and validate them via ajax. is there a more elegant solution to this? could i use an actionfilter for that or is it even simpler than that?
6 years ago
you can use javascript. or if you want to validate from server side you can also use json.
6 years ago
thank you for your answer. sadly i don't know how to apply it to my problem. WHERE should i validate the field via js/json? in a plugin? directly in the nopcommerce code?