How to make string field Mandatory when survey questions are answered?

deepikarama
Tera Contributor

I am trying to make a string field in a survey mandatory when a user selects Poor or Very Poor for any of the smiley-rating questions.

The survey contains four questions, each with a 5-point smiley rating. If the user selects Poor or Very Poor for any of these questions, the string field should become mandatory. Otherwise, the string field should remain visible but not mandatory.

 

 

1 REPLY 1

Ankur Bawiskar
Tera Patron

@deepikarama 

you can show/hide question based on previous survey question value

but you can't make it mandatory/non-mandatory based on previous question value

Approach

Create two-comment-fields : one comment question is shown only for low ratings and is mandatory, while the other is shown for non-low ratings and is optional

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader