How to create label in case form

lucky6
Tera Contributor

Hiii,

How to create label in case form..and I have seen annotation but is there way how to hide/display based on some conditions??

How to make it as bold?

Thanks in advance..

 

7 REPLIES 7

Hi Lucky,

 

Have you tried any of below code:

 

document.getElementById("my_annotation").style.display="none";

 

OR 

 

var refs = document.getElementsByClassName("annotation-wrapper");
refs[0].style.display = 'block';

 

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

Hi Anubhav,

It's not working in scoped application..

Hi Lucky,

 

You can try to put below in your Annotation text:

 

<div id="my_annotation" style = "line-height:2; font-size:13.4px;">Hello <b> Incident<b> </div>

 

Than try below lines in your Client script and try:

document.getElementById("my_annotation").style.display="none";

AND

document.getElementById("anno1").style.display="";

 

 

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023