- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 11:02 PM
Hi All,
In same Survey/Assessment. if we want to control the mandatory of a particular survey/assessment question based on the value selected in another survey/assessment questions, is it possible and if yes, how can we do it?
For Example, If I select Value as "India" for any Questions like "What is your Country?", I want that another Question "Aadhar Number" should become Mandatory. Else it should become non-mandatory.
NOTE: It should be visible always so not looking for visibility of it.
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 01:28 AM
I think its not possible.
What you can try, two have to fields for dependency, lets say if user selects India - show field1 which mandatory else field2 which is not mandatory.
Let me know if this works out.
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 11:12 PM - edited 12-06-2023 11:14 PM
Hi you can look for below work around to make mandatory. Refer screenshot to make mandatory and depends on another question and value
The survey shows like this below
When I select Yes. Additional question is shown with Mandatory
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 11:17 PM
This works on for visibility. As I mentioned, we are not looking for visibility. We are looking for Mandatory to be based on condition and not always.
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 02:06 AM - edited 12-07-2023 02:06 AM
HI @AnubhavRitolia I dont think that works but however the user response are saved/stored in asmt_assessment_instance_question table. You could try scripting this table and get the value here but
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 04:03 AM
Thanks for the response. But this is not according to the requirement.
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023