How to add help text for drop down options?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 07:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 11:31 PM
Hi
You need to create an onChange() client script that runs when the field above changes, try something like this :
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
var val = newValue;
if(val == 1)
{
g_form.showFieldMsg('type_of_request','To cancel your appointment scheduled for site pick visit on scheduling tool.','info','true');
}
else if(val == 2)
{
g_form.showFieldMsg('type_of_request','To request changing calendar configuration of the scheduling tool.','info','true');
}
//Type appropriate comment here, and begin script below
}
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2022 08:18 AM
Hi Sandeep,
I want to add help text for only one option in dropdown list and in else if condition what should I mention.
Regards,
minni.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2022 08:32 AM
Hi,
not possible for options within the Select box variable
You can add it to entire variable.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2022 12:53 AM
Hope you are doing good.
Did my reply answer your question?
If my response helped please close the thread by marking appropriate response as correct so that it benefits future readers.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader