We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Need to add annotation below the above field

s_nandhini
Tera Contributor

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?

1 ACCEPTED SOLUTION

HarshTimes
Kilo Sage

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



View solution in original post

6 REPLIES 6

HarshTimes
Kilo Sage

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



yogesh_rajendra
Tera Contributor

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);


}