- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 11:11 AM
I have two fields (Both are list collectors)
Epic Account Type
Domain
Based on epic account type and domain we need to push the value to citrix icons
I have used 2 client scripts upon onchange of Epic account type and Domain, If we choose multiple domains US & DEVAD. it is pushing both values so I am getting duplicates
Onchange of Epic Account Type
I need to push the unique values no duplicates. Please provide your assistance
Solved! Go to Solution.
- Labels:
-
Request Management
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2024 09:49 PM - edited 02-25-2024 09:50 PM
Hi @Sai18
Make below changes in the for loop line in script
for (var i = 0; i < domain.length; i++) {
for (var j = 0; j < acc_type.length; j++) {
var t_value = data_map[domain[i].trim()][acc_type[j].trim()];
if ((t_value)&&(out_value.indexOf(t_value)==-1)){
out_value.push(t_value);
}
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2024 04:47 AM
Hi @Sai18 ,
If my response resolved your issue, please mark it as helpful and accept the solution
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2024 09:49 PM - edited 02-25-2024 09:50 PM
Hi @Sai18
Make below changes in the for loop line in script
for (var i = 0; i < domain.length; i++) {
for (var j = 0; j < acc_type.length; j++) {
var t_value = data_map[domain[i].trim()][acc_type[j].trim()];
if ((t_value)&&(out_value.indexOf(t_value)==-1)){
out_value.push(t_value);
}
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2024 04:47 AM
Hi @Sai18 ,
If my response resolved your issue, please mark it as helpful and accept the solution
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2024 05:09 AM
Thank you, its working fine now