Live data from Hacker News

Formance.js – Library for formatting and validating form fields

omarshammas.github.io

1–10 of 30 posts

Re: Formance.js – Library for formatting and validating form fields

#2
Somewhat off topic, but I wish there was a credible site out there that reviewed these type of general libraries. There are hundreds of them out there and when I need to find one it usually comes with hours of research trying to decide on the right one to use. It would be great if there was a place to look up the general strengths and weaknesses of each without doing all the necessary leg work.

Re: Formance.js – Library for formatting and validating form fields

#6

A few of them (phone number) break if you CMD-A to select all and start typing, to replace the entire value. It just deselects and appends rather than overwriting.

what browser and version are you using because it should work.

Re: Formance.js – Library for formatting and validating form fields

#8
post #3

For North American phone numbers, it's fairly common to input your phone number with the preceding country code of 1. It would be nice if the library accounted for that.

true, i can add that in as an option. I just wanted to there to be less clutter and confusion for the user if they see a 1 without entering it themselves.

Re: Formance.js – Library for formatting and validating form fields

#10
post #2

Somewhat off topic, but I wish there was a credible site out there that reviewed these type of general libraries. There are hundreds of them out there and when I need to find one it usually comes with hours of research trying to decide on the right one to use. It would be great if there was a place to look up the general strengths and weaknesses of each without doing all the necessary leg work.

You make a good point, I'm not familiar with many of these libraries. Can you please provide some links.

I'm familiar with:

- Stripe jQuery.payment.js (formance is based on this project, extended beyond payment forms) https://github.com/stripe/jquery.payment

- Masked Input (good for basic formatting, and does not include validating) https://github.com/digitalBush/jquery.maskedinput

- Validate.js (does not include formatting) http://rickharrison.github.io/validate.js/

Post reply on HN