- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2018 05:34 AM
I am using g_form.showFieldMsg option in client script to display a message below the field when the country field is selected as USA. It is working fine when i click try it at the item level but not in the Service Portal.
Do we have to write any special line of code specific to work on the Service Portal?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2018 08:57 AM
This may also work:
g_form.showFieldMsg('display_name', 'USA timezone is different','info',true);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2018 05:40 AM
Hi
Check the UI Type, it should be selected as All
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2018 05:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2018 06:09 AM
I did that with UI type as ALL but no luck.
I am trying to apply this client script on a variable set
applies to -- variable set
Type - onChange
variable set --- timezone
variable name --- display_name
UI type -- ALL
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '')
{
return;
}
if(newValue == 'USA')
{
g_form.showFieldMsg('display_name', 'USA timezone is different');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2018 06:50 AM
Can anyone help me on this?