Spouter Posted November 28, 2021 Share Posted November 28, 2021 How to add custom class for example "error" to requiered fields when customer forget to fill them? For example in registration form. When customer forget to fill multiple fields and click on Submit how to highlight all that missing fields? Link to comment Share on other sites More sharing options...
Knowband Plugins Posted November 30, 2021 Share Posted November 30, 2021 Admin can use JS to add class and highlight the error fields. Also, you can add the JS in the custom.js file which present in the theme directory. File path: YOUR_PRESTASHOP_DIRECTORY/themes/YOUR_THEME_FOLDER/assets/js/custom.js Link to comment Share on other sites More sharing options...
Spouter Posted December 1, 2021 Author Share Posted December 1, 2021 Did you tried it? I dont know how to acces to fields specs? It must be somewhere something where is declared what i can write to specific input, minimum lenght, maximum lenght and some notices or error texts. I found only "we are using internal Symfony validation for forms" in developers guide. But nothing more. How is it possible that someting like live validation is not implemented in core code? PS 1.6 had live validation. PS 1.7 have Symfony a thats all. What a development! Even more and more foncionalities are missing in 1.7. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now