- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2018 01:34 PM
Hi,
How can we make different help text visible based on choice selected. This functionality must be added on Incident table field.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2018 02:14 PM
So you can add
function onChange(control, oldValue, newValue, isLoading) {
g_form.hideFieldMsg('variablename',true);
if(newValue=='aa')
g_form.showFieldMsg('variablename','your help text a','info');
else if(newValue=='bb')
g_form.showFieldMsg('variablename','your help text b','info');
else
g_form.showFieldMsg('variablename','your help text c','info');
}
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2018 02:14 PM
So you can add
function onChange(control, oldValue, newValue, isLoading) {
g_form.hideFieldMsg('variablename',true);
if(newValue=='aa')
g_form.showFieldMsg('variablename','your help text a','info');
else if(newValue=='bb')
g_form.showFieldMsg('variablename','your help text b','info');
else
g_form.showFieldMsg('variablename','your help text c','info');
}
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2018 05:20 PM
I really appreciate.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2018 04:51 PM
Please see my tutorial / solution here: https://community.servicenow.com/community?id=community_article&sys_id=7197a729dba82f0023f4a345ca961...