We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Hide/Show Survey Question

JackieZhang
Kilo Sage

How to hide/show survey question based on very complex condition? can we used unload client script for it?

1 ACCEPTED SOLUTION

@JackieZhang 

Hope you are doing good.

Did my reply answer your question?

💡 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

View solution in original post

6 REPLIES 6

Tanushree Maiti
Tera Patron

Hi @JackieZhang 

 

1. For complex logic, you can hide survey questions based on dependencies. Question C depends on B, which depends on A. The survey engine evaluates these to show/hide questions dynamically.

Refer following post for screen shots:

How can I hide or set read-only a survey question 

 

For Visual help , check this video.

https://www.youtube.com/watch?v=8TqvqZMfZow&t=5s

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
Hello Guys, In this video I have explained that how to show or hide form section based upon some condition in servicenow. If you really like my effort please like the videos, subscribe the channel. If you have suggestion or feedback , please comment in comment box.

Tanushree Maiti
Tera Patron

Hi @JackieZhang ,

By any chance if you are using Washington DC Patch 1 below version- this KB is for you.

KB1644137 Surveys with 2 or more dependencies don't hide the questions correctly 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti