Setting the annotation of a catalog variable using a client script

kim-lindgren
Kilo Sage

Is it possible? If so, how?

4 REPLIES 4

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @kim-lindgren 

Greetings!

you can add the Annotation in variable and hide and display the Annotation based on conditions.

refer:

https://www.servicenow.com/community/developer-forum/show-hide-annotations-on-incident-form-based-on...

 

Another Tip:

you can use label variable and set it near the variable you want. that is to easy show/hide.

 

Please hit the thumb and Mark as correct based on Impact!!

 

Kind Regards,

Ravi Chandra.

Thanks but your example only hides the annotation. I want a solution that can change the content of the annotation using an onChange client script.

Hi @kim-lindgren 

Were you able to get this done? If so, please let me know how did you do this..

 

Regards,

Priya

No, I had to use g_form.showFieldMsg() and hideFieldMsg() instead, which worked well enough for my purposes.