Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to create a Yes No variable that branches out?

GZ-NC
Tera Contributor

Hi all,

 

I'm sorry if this is incredibly basic but I'm having a hard time finding the right terminology. I'm brand new in ServiceNow coming from a much more simplistic platform so bear with me here.

 

I'm trying to create Yes No variables where when you pick a yes or no you can branch out further from there. Lets say in a very basic form I'd like to do the following:

Is there a timetable for this request?

Yes

No

 

If yes is selected, I would like a time\date variable to then populate.

If no, nothing needed and the next question would follow.

I'm having a hard time building these multilayer variables and would love any help, or links to some knowledge articles\videos that could walk me through some of this.

 

Thanks in advance!

4 REPLIES 4

Swapna Abburi
Giga Sage

Hi @GZ-NC 

You can create a variable of Type "Yes / No". 

Create a UI policy with Condition as Is there a timetable for this request? is Yes. After saving the UI policy, create a UI policy action and select your second variable with Visible flag marked as Yes.

Hey @Swapna Abburi,

Thanks for the response, I wanted to add some more context.

I'm creating a service catalog item for a Service Request that users will be filling out. Does this still apply?

@GZ-NC 

Yes, that's right. It applies to catalog item.

Muhammad Salar
Giga Sage

Hi @GZ-NC 
Create a ui policy in catalog item and you can achieve this, check this video
ServiceNow UI Policies