- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2022 04:31 AM
Hi everyone,
I am trying to set default priority as P4 for a particular assignment group. And I am able to achieve(onsubmit client script) so but if i try to change that the priority in the next step it is not allowing me to do this. For example the default is P4 and i try to change it to P2 and save it doesn't happen.
Please let me know how can i achieve this requirement.
Thanks,
Sarabjeet
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2022 04:58 AM
When you are updating the priority to P2 still it is saving to P4?
If yes its because of your onSubmit() client script
So please use this:
if(g_form.isNewRecord())
{
var a = g_form.getValue('assignment_group');
if (a == 'a56f4cbfdb252410b9450342f396191c') {
g_form.setValue('impact', '14'); // low
g_form.setValue('urgency', '11'); // low
}
}
Thanks,
Murthy
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2022 04:58 AM
When you are updating the priority to P2 still it is saving to P4?
If yes its because of your onSubmit() client script
So please use this:
if(g_form.isNewRecord())
{
var a = g_form.getValue('assignment_group');
if (a == 'a56f4cbfdb252410b9450342f396191c') {
g_form.setValue('impact', '14'); // low
g_form.setValue('urgency', '11'); // low
}
}
Thanks,
Murthy
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2022 05:04 AM
Thank you so much Murthy. It worked for me.