Autopopulate choices of a multiple choice field based on the company chosen?

Mouktik_B
Tera Contributor

We have a company field in the catalog item. 
In Snow we have a company table which has two fields customer and vendor which are t/f fields . 
They can't  be true together. 

We have a multiple choice type company relationship field which has 3 choices 
vendor, client and other. 
Now when i choose a company in the portal,

If the vendor is true for that company , from the choices Vendor should show up and rest hidden 
If customer is true in the company , similarly client should show up. 

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Mouktik_B 

 

Its not SNOW , its SN or ServiceNow

 

You can use the UI policy for this.

For this:

If the vendor is true for that company , from the choices Vendor should show up and rest hidden 


If customer is true in the company , similarly client should show up. 

 

 

*************************************************************************************************************
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]

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

It's not two direct fields, customer is a true/false field inside companies. Vendor is hidden from the form, present in the list view of companies.

Mouktik_B_0-1708436543035.png

 

Use dot walk.

 

AGLearnNGrow_0-1708436918935.png

 

*************************************************************************************************************
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]

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

AshishKM
Kilo Patron
Kilo Patron

Hi @Mouktik_B,

Check the dot walking as suggested by @Dr Atul G- LNG .

If you are not getting the dot walk option in UI Policy then write onChange client script on company field and determine the field visibility (True/False ) based on customer=true or vendor = true.

 

-Thanks,

AshishKM

 


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution