Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

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

 

 

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="";