Validation: Require one of two questions | XM Community
Skip to main content
Solved

Validation: Require one of two questions

  • August 30, 2018
  • 4 replies
  • 47 views

Forum|alt.badge.img+3
How can I require that the customer provide either a phone number or an email? He/she doesn't have to provide both, but must supply one.

Best answer by TomG

Assuming you are using a Text Entry form, use custom validation with the condition "Phone is not empty OR Email is not empty".

4 replies

LaurenK
Former XM Community Team Member
Forum|alt.badge.img+13
  • Former XM Community Team Member
  • August 30, 2018
Hey @red5! It looks like this question involves our Research Core platform, rather than the Website/ App Feedback product. Thus, I have gone ahead and moved this discussion to the correct category!

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • August 30, 2018
Assuming you are using a Text Entry form, use custom validation with the condition "Phone is not empty OR Email is not empty".

Eesh
QPN Level 2 ●●
Forum|alt.badge.img+3
  • QPN Level 2 ●●
  • August 30, 2018
@red5, You can achieve this by creating a form and then apply the custom validation. Step 1: ! Step 2: !

Forum|alt.badge.img+3
  • Author
  • Level 1 ●
  • August 30, 2018
@TomG @Eesh : Thank you both. This works great. Thank you for the screenshot. It's helpful to a tired Noob.