
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2018 12:36 AM
We have a business requirement to show a certain field message depending on the value of the Priority field.
For example field message A will be shown when Priority is 4 and it will show message B when Priority is 1.
How can we implement this?
Solved! Go to Solution.
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2018 12:42 AM
i would suggest you can use client script onChange() on priority to fulfill this requirement
ui policy always use to make field read only, mandatory and to make field visible.
if(g_form.getValue('priority')==1)
{
g_form.addInfoMessage(' hey');
}
else if (g_form.getValue('priority')==4)
{
g_form.addInfoMessage(' hey again');
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2018 12:42 AM
i would suggest you can use client script onChange() on priority to fulfill this requirement
ui policy always use to make field read only, mandatory and to make field visible.
if(g_form.getValue('priority')==1)
{
g_form.addInfoMessage(' hey');
}
else if (g_form.getValue('priority')==4)
{
g_form.addInfoMessage(' hey again');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2018 01:02 AM
Hello JC,
If you insist to achieve your goal via UI Policy - then, You may create a UI Policy against the respective table and condition: Priority | is | 4 - Low (for example). Then, you may use the Script section and Run script while adding the following script point in 'Execute if true':
if(g_form.getValue('priority' == 4)){
g_form.showFieldMsg('priority', "Message A", "info");
}
}
g_form.hideFieldMsg('priority');
}