email address validation and phone number validation

sodc 03 Dec, 2014
I cannot figure out what the element settings should be to validate the following:
email addresses like this:
test1@gmail.com
If I validate the above, then test@gmail.com does not validate

phone numbers like this:
206-333-3333
I only get 206333333 to work.

Please let me know what combination of settings I need to say yes to.
calculus00 03 Dec, 2014
Hello sodc,
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
Email address domain validation
P.S: I'm just an automated service😉
GreyHead 03 Dec, 2014
Hi sodc,

As far as I know both the test1@ and test@ emails should validate in the same way. I don't think that test+1 will validate though.

Phone number formats vary widely and I suspect that the dashes aren't recognised by the validator regex. You can add a Custom validation, or using an input mask might also be helpful.

Bob
sodc 03 Dec, 2014
What am I to say yes to under the elements settings? I have tried alpha, alphanumeric, said yes to both. Tried yes and no to others and no combination works properly.

I cannot get test1@ and test@ to validate at the same time. Obviously I need the system to validate either of these type of email addresses.
sodc 04 Dec, 2014
Can I please get help on this. I have a marketing campaign that was suppose to start yesterday but I cannot do it until this contact form works. It is being used for individuals to register for a contest. We obviously need to collect their email address. This should be straightforward. I have spent hours trying to find a combination that works to allow the input of email addresses that have numbers and letters in the email address.

One solution is to not make it an email field and instead a text field, but then they will not receive an email from us. Plus I cannot find an element setting that will allow the @ sign to be allowed with alphanumeric.

If I need to make a custom validation for the email address, I need to know how.
GreyHead 04 Dec, 2014
Hi sodc,

Just the standard email validation should work OK? I'm not at all clear what extra you need here?

Bob
sodc 04 Dec, 2014
Duh. So sorry. If JUST the email validator is checked it works fine.

Can you tell me how to do this:
"Phone number formats vary widely and I suspect that the dashes aren't recognised by the validator regex. You can add a Custom validation, or using an input mask might also be helpful."

To allow dashes in the phone number what would be the custom validation-no idea how to do this.

OR the easier solution is to add a sub label that says don't enter dashes. BUT the default sub label text color is not visible with my page background. Where can I change the sub label text color. It looks like it probably is controlled by help-block css. I cn't find the css file that needs to be edited.
sodc 05 Dec, 2014
Would be nice to still have ability to allow dashes, but was able to put sub label text using css to change color.
This topic is locked and no more replies can be posted.