- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2020 05:14 AM
Dear all,
I have a table that extend from Task table under Application Scope. I would like to set the Priority high when the requester is VIP.
I would appreciate you help.
Regards,
Hong
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2020 05:34 AM
Hi hongsok
We can do this with business rule but business rule will work after you saved the form.
With client script once you change the caller and if caller is vip then immediately priority will be set to 1- High
so Create a Onchange Client script on Called field and add below code
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
var callerID = g_form.getReference('caller_id', setPriority);
function setPriority(callerID) {
if (callerID.vip == 'true') {
// Priority is depend on Imapct and Urgency.You need to set Impact and Urgency
g_form.setValue('impact', 1);
g_form.setValue('urgency', 1);
}
}
}
Kindly mark it correct and helpful if it solves your issue.
Thanks and Regards,
Anish kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2020 05:18 AM
hey,
Create a on Before insert BR and under conditions, select
show related fields and then select caller->Related fields
and select vip under caller is true
Then go to actions,
set impact as high
urgency as medium
priority as 2.
Save.
Thanks
Tanushree
Please mark helpful and correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2020 05:18 AM
Hi,
You can create a group with name "VIP" and add users to that group.
And then you can use client script with method isMemberOf();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2020 05:25 AM
Hi Hongsok,
Create a on Before insert Business Rule and under conditions,
select show related fields and then select caller->Related fields
and select VIP under caller is true
Then go to actions, set impact as high urgency as high priority as High
Save.
Kindly mark it correct and helpful if it solves your issue.
Thanks and Regards,
Priyanka

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2020 05:34 AM
Hi hongsok
We can do this with business rule but business rule will work after you saved the form.
With client script once you change the caller and if caller is vip then immediately priority will be set to 1- High
so Create a Onchange Client script on Called field and add below code
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
var callerID = g_form.getReference('caller_id', setPriority);
function setPriority(callerID) {
if (callerID.vip == 'true') {
// Priority is depend on Imapct and Urgency.You need to set Impact and Urgency
g_form.setValue('impact', 1);
g_form.setValue('urgency', 1);
}
}
}
Kindly mark it correct and helpful if it solves your issue.
Thanks and Regards,
Anish kumar