Custom table header should also show the Status of the ticket
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi Team,
We have a requirement to display the ticket status alongside the ticket number or elsewhere in the form header.
We have already suggested using Process Flow Formatters, but the client specifically wants the status to be displayed in the form header itself.
Could you please let us know if this requirement can be achieved using an out-of-the-box configuration, or if it would require customization? If customization is required, could you please advise on the recommended approach?
Apart from process flow formatter please suggest if its possible to achieve it?
Thanks,
Bhavana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
no out of the box option available for this
you can use DOM manipulation to add some text there i.e. Status value but DOM is not recommended
if you still want you can use onLoad client script with Isolate Script = False to allow DOM
this worked for me, you can try to play with the HTML DOM and manipulate the alignment etc
function onLoad() {
setTimeout(function() {
var button = document.getElementById('header_add_attachment');
if (button) {
var choiceValue = g_form.getValue('state');
var choiceLabel = g_form.getOption('state', choiceValue).text;
button.insertAdjacentHTML(
'beforebegin',
'<p>' + choiceLabel + '</p>'
);
}
}, 2000); // Wait 2 seconds
}
Output
💡 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