Custom Validation using embedded data | XM Community
Skip to main content
Question

Custom Validation using embedded data

  • March 20, 2025
  • 1 reply
  • 9 views

Forum|alt.badge.img+1

Hello,

 

Wondering if there’s a way to implement custom validation to see if say an ID number already exists in the XM directory. So, the question will not move forward if that ID exists.

1 reply

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5921 replies
  • March 21, 2025
Andrezj14 wrote:

Hello,

Wondering if there’s a way to implement custom validation to see if say an ID number already exists in the XM directory. So, the question will not move forward if that ID exists.

It would be tricky.

One way would be to use JS to disable/hide the next button, add “check” button (i.e., fake next button), do an ajax call to the API to see if the id exists, and enable/click the next button if it doesn’t exist or display an error message if it does exist. 


Leave a Reply