- 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 08:52 AM
What happens if you change the below:
g_form.showFieldMsg('display_name', 'USA timezone is different');
to
alert('USA timezone is different');
?
- 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 10:36 AM
Wooaaah!!!!! It worked, thanks alot 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2020 07:24 AM
Hi ndt13,
I have a field called Option(multiple choice) and I have 3 choices under this.(A , B , C)
I wanna show a field msg under Option when A is selected.
I tried this but isn't working.
Can you please help me here.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
g_form.getValue('options', 'New Hire');
g_form.showFieldMsg('Option' ,'If New Hire, state that accessories are included (Two Monitors, Docking Station, Monitor Cables, Keyboard and Mouse)', 'info'), true;
//Type appropriate comment here, and begin script below
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2018 08:59 AM
Hi Nikitha.
Do not forget that you have to clean after the message. with this code.
g_form.hideFieldMsg('display_name');
regards
Richard.