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

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.

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