Autopopulate choices of a multiple choice field based on the company chosen?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 05:25 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 05:35 AM
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 05:43 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 05:48 AM
Use dot walk.
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 06:01 AM
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