Forums

Check if Email Or Phone Number is Entered

LikeStuff 29 Jul, 2009
Is there a way for me to add a validation to check if an Email OR a Phone Number is entered. If both are entered then it's fine but at least one must be entered.

Thanks!
GreyHead 29 Jul, 2009
Hi likeStuff,

It's possible that you could wrap the two inputs in a single div (so that they have a common parent) and use 'validate-one-required'. Otherewise a little custom JavaScript test will do it.

Bob

PS Create a very simple form with two inputs and a submit button to test this 'validate-one-required' option.

Bob
This topic is locked and no more replies can be posted.