How to add help text for drop down options?

yammeneh minnii
Tera Contributor

Hi,

I need to add help text  for one option in drop downlist.  please find the below attached. for "JIRA Canada" need to add help text and what's the process? How to do that please help me on that.

find_real_file.png

Regards,

Minni. 

5 REPLIES 5

Community Alums
Not applicable

Hi @yammeneh minnii ,

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

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.

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

not possible for options within the Select box variable

You can add it to entire variable.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@yammeneh minnii 

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader