Skip to Content Skip to Menu

registration form validation on blur

  • carin
  • carin
  • OFFLINE
  • Posts: 417
  • Thanks: 18
  • Karma: 0
8 years 8 months ago #288804 by carin
I would like to change the validation behavior from "onChange" or "focus" to "blur" so that the red validation message does not already appear during typing. It is really discouraging the user when he did not even finish typing his email and the form already shouts at him to not make mistakes.

CB 2.0

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 49447
  • Thanks: 8467
  • Karma: 1465
8 years 8 months ago - 8 years 8 months ago #288844 by krileon
Replied by krileon on topic registration form validation on blur
Not without modifying core files, which we do not support. Form validation jQuery is prepared in the below file where you'd need to send custom jQuery Validate options to turn off keyup validation.

libraries/CBLib/CB/Legacy/cbValidator.php

Validate on blur is as useful as validate on submit. Meaning the user tends to just ignore it. Validate on type is typehinting which is more helpful than telling you later that you screwed up after you've moved past the input. It's a 50/50 split UX wise which is best and comes down to personal opinion at that point I suppose.

We've taken steps to make the errors non-intrusive (no bright backgrounds around the error), but you could use CSS to further make the errors less intrusive if you wanted. A lot of it also comes down to what the field is asking of the user. A better approach is to probably delay the type validation by a few seconds instead of immediate feedback


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 8 years 8 months ago by krileon.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum