- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 11:47 PM - edited 05-17-2024 03:17 AM
Hi, there is new requirement for Catalog Item:
On the Basis of User's "Country" Field.
The options under "Salesforce Instance" should get populated.
For eg: Country= INDIA || Country1 || Country 2|| Country 3, Salesforce Instance = "Instance A, Instance B",
Country= USA || Country 4, Salesforce Instance = "Instance C, Instance D, Instance E",
Country= UK , Salesforce Instance = "Instance F, Instance G", and so on
Total there are 10 countries
If you want to change the field variable please let me know what Variable field should be
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 03:11 AM - edited 05-17-2024 03:14 AM
addOption(String fieldName, String choiceValue, String choiceLabel, Number choiceIndex);
fieldName | String | The field name. |
choiceValue | String | The value stored in the database.(BACKEND Value) |
choiceLabel | String | The value displayed. |
choiceIndex | Number | Order of the choice in the list. |
Client Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 11:56 PM
It looks to be a choice field. Can you just make it depended on the choice of the country field?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 12:12 AM - edited 05-17-2024 12:12 AM
But how to make it Depended? Like there is no table for Salesforce Instance. It will be helpful if you explain in detail. Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 01:11 AM
Please check the links from SarthakKashyap
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 12:26 AM
Hi @shubhi211 ,
Please check below links this may help you
https://concurrency.com/blog/servicenow-dependent-variables-on-record-producer-in-service-catalog/
https://pathwayscg.com/using-category-and-sub-category-on-record-producers/
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak