Custom validation using embedded data and dropdown menu | XM Community
Skip to main content

Hi all;

I need to use a custom validation for a dropdown menu variable. For this validation I need to compare the value chosen with an embedded data. I don't find how to choose the selected choice for the left hand side. I can only choose one of the possible values in the dropdown menu.

 

Thanks 

@Nahed - Deleted. Sorry, I forgot you can’t use Embedded Data on the left.


@Nahed,

It is a bit convoluted, but you can do it like this:

  • Add a text entry question on the same page as your dropdown. Make the default answer the embedded data field you want to compare to. Hide the question with JS.
  • Based the drop down question custom validation on the text entry question where the right side of the condition is the piped value of the selected value in the drop down question.

Leave a Reply