The CreatorCon Call for Content is officially open! Get started here.

Add label variable in service catalog

suha2
Tera Contributor

Hi All,

I am in need to create a variable(105) in catalog that will contain a label , but that information is too large and also add condition if 104 is yes means visible  , how can I add this variable ?

 

104

Do you already have a company phone?

Choice (Boolean)

*

Radio buttons for 'Yes' or 'No', may trigger additional fields or processes.

 

105

label/information - 
Your previous mobile phone must be returned to the site within 5 workdays, please transfer your simcard from your old phone to your new phone.

Label/Information

 

label/information - 
Your previous mobile phone must be returned to the site within 5 workdays, please transfer your simcard from your old phone to your new phone.

if 104 = yes

1 ACCEPTED SOLUTION

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @suha2 

LearnNGrowAtul_0-1705602117544.png

 

and create a catalog UI policy

if 104 has value = Yes

then show 105 else no.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

6 REPLIES 6

Musab Rasheed
Tera Sage

It's a simple requirement, you can do with more than solution.

1) Use Showfieldmsg function , use this with 104 field. Example

https://docs.servicenow.com/bundle/vancouver-application-development/page/script/useful-scripts/refe...

2) Use 'Label' or 'Rich text label' variables and write a simple UI policy and hide/show.

Both are simple. please explore.

Please hit like and mark my response as correct if that helps
Regards,
Musab

@suha2 I provided you two solutions but of course didn't want to spoon feed you on simple things. If my reply was helpful please accept my answer as correct or else ignore.

Please hit like and mark my response as correct if that helps
Regards,
Musab

@Musab Rasheed  I have done this simple requirement with simple solution . Thank you for your solution.

Ok great, Since I provided you inputs first hence I wanted to check if my solution can be accepted as well. Good luck!

Please hit like and mark my response as correct if that helps
Regards,
Musab