javascript form validation
Hi there,
i notice that the checkout form validation only happens after a page refresh. Any reason you guys don't use javascript validation on the fields instead?
Thanks!
Discussions are closed to public comments.
If you need help with Cheddar please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Marc Guyer on 09 Oct, 2015 02:02 PM
Javascript validation would only handle for a subset of the validation required. Further, even with js validation, you still need it on the server-side which makes it possible for validation collision.
2 Posted by Flo LVDF on 09 Oct, 2015 07:27 PM
Well couldn’t you do basic input validation like formatting, etc before submitting the form for real-world data validation? Seems like that’s how everyone else does it, for it makes the whole experience smoother and faster and avoids a number of unnecessary refreshes. Maybe use something like http://bradfrost.com/blog/post/single-field-credit-card-input-pattern/ https://creditcardjs.com or http://jessepollak.github.io/card/ for the cc form as well?
On 9 octobre 2015 at 8:02:22 AM, Marc Guyer ([email blocked]) wrote:
Marcela Poffald closed this discussion on 11 Apr, 2018 03:59 PM.