Empty assigned_to list when assignment group is empty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2017 05:14 AM
Hi,
I had a requirement to empty the assigned_to list when the assignment group is empty.
So that users should not be able to select the assigned_to before assignment group is selected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2017 05:23 AM
Hi Ramu,
Can you please try to create onChange Client Script for "Assignment group" field and in that client use below script to make assigned to blank when assignment group is blank:
- if(!g_form.getValue("assignment_group")) {
- g_form.setValue('assigned_to','');
- }
I hope this helps.Please mark correct/helpful based on impact.
Let me know in-case of any question.
Regards,
Chirag Bagdai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2017 05:39 AM
The simplest solution would be a UI Policy making Assigned To Read Only when Assignment Group is Empty, along with a UI Policy script that would also clear out assigned to when assignment group is empty.
I would question the requirement though. As someone who has worked in a support role on a system that did not allow picking the assigned to person first, it was always difficult to find the correct assignment group if I knew who it needed to be assigned to, but didn't necessarily know the team..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2017 06:09 AM
Hi,
As mentioned by Chris, it's better to do the above requirement using the UI Policy itself clearing the value of the field and making it Read Only i.e. restricting the users from selecting the Value. This is because even if you clear out the Value of Assigned To field as mentioned by Chirag I guess User can still select the Value from the Reference List of Assigned To field.
Below is the UI Policy with script which needs to be configured to achieve the same:
Hope this helps.Mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2017 12:25 PM
Hi,
Did you got a chance to review the solution proposed, if your query is Resolved please mark the answer as correct and close the thread.
Regards,
Shloke
Regards,
Shloke