Custom Validation Using only Embedded Data | XM Community
Skip to main content

Hello,
I'd like to write a custom validation condition that only uses embedded data (i.e., has embedded data variables on both sides of the condition). This doesn't appear possible, it appears that the left-hand side of the condition must be some aspect of the question in hand.

What's the best way to not let the user advance to the next page unless some condition involving only embedded data is satisfied? I tried disabling the next button until the condition was met, but noticed that if I just let the page sit the next button would randomly become enabled after ~30 seconds all on its own (without the condition being met) - weird!

Thank you!

What is the condition that needs to be met for them to advance? Is it text-based, numerical, selection, etc? As each would require a different solution.


wpm24 The respondent uses three date pickers on the page, which fill text boxes with the chosen dates in the form, e.g., "January 24."
So Qualtrics stores the question answers as Strings. I can convert the strings to Date objects, store them as embedded variables, and compare - I want to make sure the three dates are in chronological order.
Essentially, I'd like to mimic Qualtrics' validation mechanics, i.e., the respondent clicks on the "continue button' and, if the dates are out of order, it spits them back onto the same page with red error texts above the questions. Is there a simple way to mimic this behavior? As I mentioned, I wasn't having luck disabling/enabling the "continue" button.


Leave a Reply