- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2019 01:34 AM
Hi Guys.
I need to show an alert when Priority is 1.
Which depends on Impact and Urgency..
Wrote a UI policy on condition.
Impact is Customer (Customer value is 1)
Urgency is Today (Today value is 1).
Excute if True. wrote an alert.
But it's not reflecting on form. Please suggest.
Solved! Go to Solution.
- Labels:
-
Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2019 09:07 AM
Hello Naveen,
Use onChange Client Script: Remove isLoading Part from script so it will run on form load and field change as well.
Make sure that your onChange client script is on Priority field. Add below code :
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
var priority = g_form.getValue('u_priority');
if (priority == "1") {
var confirmed = confirm("Are you sure you want this to be Priority 1?");
if (confirmed == false) {
return false;
}
}
}
Please mark as Correct Answer and Helpful, if applicable.
Thanks!
Abhishek Gardade
Hexaware Technologies
Abhishek Gardade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2019 01:47 AM
hi ,
Can you try to create UI policy on priority Field ...
Thanks
Luxo

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2019 01:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2019 09:56 PM
Hi Anshu,
It's not working.
Let me try in my PDI once.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2019 09:07 AM
Hello Naveen,
Use onChange Client Script: Remove isLoading Part from script so it will run on form load and field change as well.
Make sure that your onChange client script is on Priority field. Add below code :
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
var priority = g_form.getValue('u_priority');
if (priority == "1") {
var confirmed = confirm("Are you sure you want this to be Priority 1?");
if (confirmed == false) {
return false;
}
}
}
Please mark as Correct Answer and Helpful, if applicable.
Thanks!
Abhishek Gardade
Hexaware Technologies
Abhishek Gardade