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

Custom validation using embedded data and dropdown menu

  • February 23, 2024
  • 2 replies
  • 143 views

Forum|alt.badge.img+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

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5932 replies
  • February 23, 2024

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


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5932 replies
  • February 23, 2024

@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