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
Tera Guru

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

Gaurav Bajaj
Kilo Sage

Hi,



Is this a table form or catalog item?



Instead of annotation, you can use fieldmessage on the field through client script.



Display Field Messages - ServiceNow Wiki



Please mark correct/helpful based on the impact of the response.




Thanks


Gaurav


Hi,



Catalog Item


But the requirement is to add annonation to that particular choice value


On catalog item, there is no annotations, This is available on the table forms only. You can put a client script if(SELECTED CHOICE IS SOFTWARE) then you can write the below script that will work


How to display error message next to a variable in the Service Catalog