- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2022 02:25 AM - edited 11-18-2022 02:28 AM
Hello,
I have a task to add/remove choices from sub_unit_1 variable based on choices from business_unit_1 variable.
Business_unit_1 is a reference to table "u_business_unit", label '"name", and sub_unit_1 is lookup selectbox ( also reference to table "u_business_unit", label "name")
Code below is not working. Please, assist. Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2022 03:05 AM
You should provide below parameters while using addOption method :
g_form.addOption("sub_unit1", "All employee", "All employee", 1);
g_form.addOption("sub_unit1", "ATF Test", "ATF Test", 2);
Please mark answer as Correct or Helpful based on impact.
Regards,
Abhijit
ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2022 03:21 AM
Thank you, its working.
Regards