This article is part of the assessment builder guide. You will require administration access to view the pages mentioned in this article.
You have the ability to make a field "Required" (Mandatory). For an assessment to be approved, all Required fields must be filled in. As a result, it is important to never nest a 'Required field' inside a 'Show If' block.
A 'Show if' block traditionally only displays values or fields if certain selection is made from a list. If a required field is within a 'Show If' Block and the 'Show if' Block is not displayed on the screen, then the form will not approve and you will not see any error message to say it hasn't approved.
How do I make sure my question is answered if it is both conditional, but mandatory when another field is set to Yes?
The best way to achieve this is a Before Save trigger script, associated with your assessment.
Example:
if (answer1 == "Yes") { if (!answer1a) { script.fatal("As you have selected Yes to Answer 1, you must provide a response to Answer 1A") } }