Adding/Removing option based on assignment group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 12:33 AM - edited 10-09-2023 12:52 AM
Hi team,
My requirement is to add/remove options based on group. when ABC group is selected there are other two fields called agent and target based on agent selected target has to update the options.
i have created script include and client script but after saving it returning to none
script include:
returnIncGroup: function() {
var caseId = this.getParameter('group_id');
var gr = new GlideRecord('table_name');
gr.get(caseId);
if (caseId == gs.getProperty('propertyofgroupname')) {
return true;
} else {
return false;
}
},
onchange client script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 12:47 AM
In your script you are not equating your object "ethicsObj" with anything, so why are you gliding then?
Can you paste the actual code here?
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 12:54 AM
Hi Raghav,
this is my original script only,can you let me know if the issue with script include?