Is there a way to hilight errors on the forms?
Like using js to highlight the labels of required fields that users did not fill in?
Yes, I am not good at Javascript so example would be much appreciated
I worked it out, there is a way to do this without js.
Using form body copy, inline styles, custom error message for a field would be a value of a background colour(#ff0000) and using %form_errors_message% at the begining of the form to inform useres that there were errors on submission and required fields hilighted below.
I thought I'd share this with you.
What do you think?
Think thats great ![]()
The keyword will instigate server validation, if you use the %form_errors% keyword the server will respond with specific fields that failed validation, in an unordered list which you can style with css.
nb. you can turn client side validation on (form contents screen). If you do this users with javascript enabled browsers get a js alert without a page reload… (no keyword required to work) BUT –> if a user with a js disabled browser uses your form then the server side validation will work because of the keyword… both bases covered ![]()