Custom validation using embedded data and dropdown menu | XM Community
Question

Custom validation using embedded data and dropdown menu

  • 23 February 2024
  • 2 replies
  • 33 views

Badge +1

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 


2 replies

Userlevel 7
Badge +27

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

Userlevel 7
Badge +27

@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