Custom validation issues | XM Community
Question

Custom validation issues

  • 28 December 2020
  • 1 reply
  • 23 views

I am attempting to set validation criteria, so students are not able to complete a question block if they have selected an instructor which does not teach that course. Course 1 is taught by instructor A. Student has selected Course A, but has selected instructor B = error message occurs via custom validation.
The available selections are made available to students through "pass-through" fields.
I am getting/not getting the desired output using the current logic set up.
Validation.pngThe current logic works as expected if the student only selects one course and one "correct" instructor OR one "incorrect" instructor. But if the student wanted to evaluate multiple courses and multiple instructors throughout their survey this leads to the following issue:
The current logic will allow the student to progress to the question block if any of the instructors listed within the validation logic are "displayed" and not "selected" though "selected" is the final variable.
Any thoughts/insight would be appreciated. Thanks in advance. Happy Holidays everyone!
Duffy


1 reply

Userlevel 7
Badge +21

What you are going for, maybe possible, but due to the possible combinations, the answer would be extremely complicated. However, this appears to be a suitable case for using loop & merge. I think this video discusses something very close to what you are looking for.

Leave a Reply