Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Inconsistency in CRED default validation and cred_form_validate

$
0
0

I needed some advanced validation for my CRED form so I used the cred_form_validate hook to achieve it. However, the validation seems to be different for each of those cases. The default validation will work before the form is submitted (it displays an error tooltip above the field, i.e. This field is required).

However, when I use the cred_form_validate hook, the page refreshes and then only after that it will display the error message. Also, this error message does not look like the above tooltip. It displays a red border around my field and adds the error text above it. This breaks the user experience.

Why two different-looking types of error messages? Why not make cred_form_validate use the default validation and validate without a page refresh and display that tooltip?


Viewing all articles
Browse latest Browse all 20145

Trending Articles