Enforce Field Format Validation

Hello again guys,

I am noticing that field format for phone number, currency, etc do not actually enforce a format at all. You can put anything in a phone/currency/etc field and it will accept it. Is this something I have setup incorrectly? Another quick question, is there a way to make drop-downs default to no selection so that when they are required, they will not already be filled out? I'm dealing with entry level users and need to have these validations in place. Thank in advance for any info. You guys have been great!

You can do it with some javascript.

There are a few ways to add javascript for format validation. I prefer to do it with Logic Hooks because they give the ability to do some php processing as well.

Keep in mind that, apart from checking the validity of the values, you should store them in such a way that they are easier to search (for example adding + or 00 or dashes or spaces or parentheses to phone numbers may turn the search into an impossible task)