Content Validation | XM Community
Skip to main content
Question

Content Validation

  • September 23, 2021
  • 1 reply
  • 46 views

Forum|alt.badge.img+3

I need to add content validation to a few questions...specifically to format answers that are dates. The formatting only allows for month, day and year, in various orders. However, I need to have some answers with just month and year, but the formatting provided does not allow this. Does anyone know how I can accomplish this with coding for content validation, or do I have to ask the question in a form field format?

1 reply

grahulp5
QPN Level 3 ●●●
Forum|alt.badge.img+13
  • QPN Level 3 ●●●
  • September 29, 2021

You can create either 2 different drop down questions with the dates required or you can create a simple text entry question and then apply JS and hard prompt some regex into it. I'd suggest to go via drop down with the list already in place and force prompt which can be done via side by side question.