- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2023 10:57 AM
Hi Team,
Is there any way to clear the "Assigned to:" when you change the "Assignment Group"?
I have seen a couple of times where for example the SCtask Assignment Group is set to Desktop Support and the assigned to is Joe, then I would set the SCtack Assignment Group to Desktop Architecture, hit save, and it would keep the Assigned to as Joe even though I am not in that group.
Thanks,
Sasipriya.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2023 11:08 AM
Hi @sasipriya
To clear the Value of assigned to field when assignment group changes you will need to create On change client script. Follow the steps to achieve this.
1. Create a OnChange client script for variable assignment group.
2. Select the table as your requirement.
3. Save the record.
Now you should be able to clear Value from assigned to field when assignment group changes
Regards,
Ashir Waheed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2023 11:18 AM
Hi @sasipriya ,
You should be clearing out values only if the new value is different from the previous value, you can achieve this via onChange client script, paste the code below in onChange client script, field name would be 'assignment group'
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading){
return;
}
if(newValue != oldValue){
g_form.clearValue('assigned_to');
}
}
If my answer has helped with your question, please mark it as correct and helpful
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2023 09:04 PM
Dear @sasipriya
Ideally assigned_to field is working on the basis of assignment_group field.
if you want to set value of assigned_to field, first clear the assignement_group then set new assignment group and member of this group to assigned_to field.
Please feel free to reach me in case any queries.
- Kailas