- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2017 11:42 PM
Hi ,
My requirement is i have a drop down field with two option
1.Hardware
2.Software
when i select software under that i need a annotation "----".It should only visible for software choice.
How to do this?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
-
Team Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2017 11:54 PM
HI Rajanandini
You can create a onchange client script that will show the field message below the filed. you can use the function g_fomr.showFieldMsg() for this. See the below link for more details.
GlideForm (g form) - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2017 11:54 PM
HI Rajanandini
You can create a onchange client script that will show the field message below the filed. you can use the function g_fomr.showFieldMsg() for this. See the below link for more details.
GlideForm (g form) - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2017 02:37 AM
Hi Rajanandhini,
You can use this 'on change' catalog client script for your requirement.
if(newValue == 'white'){
g_form.showFieldMsg('color','testing field msg functions','info');
return true;
}
else if(newValue != 'white'){
g_form.hideFieldMsg('color',true);
}