javascript form validation

Flo LVDF's Avatar

Flo LVDF

08 Oct, 2015 03:55 PM

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!

  1. Support Staff 1 Posted by Marc Guyer on 09 Oct, 2015 02:02 PM

    Marc Guyer's Avatar

    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. 2 Posted by Flo LVDF on 09 Oct, 2015 07:27 PM

    Flo LVDF's Avatar

    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:

  3. Marcela Poffald closed this discussion on 11 Apr, 2018 03:59 PM.

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

Recent Discussions

28 Mar, 2024 10:45 PM
24 Jan, 2024 08:33 AM
11 Jan, 2024 07:13 AM
30 Nov, 2023 02:07 AM
22 Nov, 2023 08:41 AM