- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2023 07:47 AM
Hi Community,
I want to set assigned to field with one user name(Able Tutor) on particular condition else assigned to field will be mandatory.
Condition: Short description is Application support assigned to field need to set with Able Tutor.
else assigned to will be mandatory.
We can achieve this with client script or ui policy but not sure how i will prepared script for this.
Any one help on this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2023 08:43 AM - edited 06-08-2023 08:44 AM
You can use below code in a client script for achieving your requirement
if (g_form.getValue('short_description') == "SSO Application Integration") {
g_form.setValue('assigned_to', '62826bf03710200044e0bfc8bcbe5df1'); //sys_id of Abel Tuter
} else {
g_form.setMandatory('assigned_to', true);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2023 07:59 AM
Hi Shaik,
You might want to consider creating an assignment rule for this scenario. After that, you could set a UI Policy, where state is not new, and assigned to is empty, then make assigned to mandatory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2023 08:31 AM
Hi Prinssi,
Thank you for your response.
I am applying the same logic but not luck, still assigned to is not filling automatically.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2023 08:34 AM
Did that record exist already? Or was it a new record? The assignment rules run when a case is created on the designated table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2023 10:02 PM
It is new record.