How to create label in case form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2022 06:22 AM
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..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2022 12:27 AM
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';
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2022 10:19 AM
Hi Anubhav,
It's not working in scoped application..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2022 10:32 AM
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="";
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023