Regarding making variable part in bold
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hello,
I have a requirement to make part of question field of checkbox type Project Number not found / Multiple Project Numbers / Not Applicable / Unknown (enter manual note), only (enter manual note) this part in bold on portal/catalog form. kindly suggest on this any inputs.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
59m ago
I think you created this as duplicate question
This is not feasible
Why not keep a Rich Text Label variable just above your variable and add the formatting?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
23m ago
Hi @rutujalande,
I tested this requirement
Catalog Client Script
function onLoad() {
setTimeout(function() {
var lbl = document.getElementById(
"ni.IO:ce7bb7a89306031021f9fe818bba1061_label"
);
if (lbl) {
lbl.innerHTML =
'Project Number not found / Multiple Project Numbers / Not Applicable / Unknown <b>(enter manual note)</b>';
} else {
alert("Label not found");
}
}, 50);
}
- Classic Catalog UI Works as expected and only "(enter manual note)" is displayed in bold.
- In Service Portal Does not work.