I’m trying to make the following work:
If a guest user leaves a comment, he/she has to fill in all required fields. Required fields are (in this case) Name, Email, URL, Location and Comment. If that user neglects to fill in any of those fields, the comment form should re-appear, but this time with notifications next to the input fields—something like ‘It is required that you fill in this field’.
In the way EE works now, if you ‘forget’ to fill in required fields, the user gets a plain error message, including a JavaScript link to go back. Works in a basic way, but there’s room for improvement, here.
I could play with some DOM scripting to check the fields and add the notifications, but the point is, I want this to work for users without JavaScript as well (hey, it’s a matter of principal).
I probably have to write a plugin for this to work to check the required fields with PHP. Any pointers?
