- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
15 hours ago
How do I configure dependent choices from the form? I need to add two and remove one option. It is for the category "Software", and I need code to add two and remove one choice. Also, where/how do I execute the code? Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11 hours ago
Hi @WeighedBrass95,
The message "Configure dependent choices from the actual form" appears because ServiceNow requires you to define choices for a dependent field in the context of its parent. Since the available "Subcategory" options change depending on the selected "Category," you cannot set a single list of choices in the dictionary.
To configure the choices, you must go to the form where these fields are used and follow these steps:
Navigate to the form
Select a value in the "Category" field
Right-click the "Subcategory" field label and select "Configure Choices".
A new screen will appear where you can add, remove, or reorder the choices that should be available only when "Software" is the selected category.
Save your changes.
You will need to repeat this process for every value in the "Category" field to define their respective subcategory options.
If you find my response helpful, mark it as helpful and accepted solution.
Regards,
Maham Tahir.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11 hours ago
First, you need to create all the values in the category list. Then, if you want to control visibility, you can set the appropriate restrictions.
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/dratulgrover [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11 hours ago
Hi @WeighedBrass95,
The message "Configure dependent choices from the actual form" appears because ServiceNow requires you to define choices for a dependent field in the context of its parent. Since the available "Subcategory" options change depending on the selected "Category," you cannot set a single list of choices in the dictionary.
To configure the choices, you must go to the form where these fields are used and follow these steps:
Navigate to the form
Select a value in the "Category" field
Right-click the "Subcategory" field label and select "Configure Choices".
A new screen will appear where you can add, remove, or reorder the choices that should be available only when "Software" is the selected category.
Save your changes.
You will need to repeat this process for every value in the "Category" field to define their respective subcategory options.
If you find my response helpful, mark it as helpful and accepted solution.
Regards,
Maham Tahir.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10 hours ago
Hi @WeighedBrass95 ,
For 2 Addition:
- Right-click the Subcategory label and choose Configure Dictionary.
- Go to the Choices related list at the bottom.
- Click the choice you want to change, set Dependent value to Software.
For Removal,
on above step2 : open choice list ,
1. open the choice which is not required and Dependent value to Software
2. Deactivate it.
