Special Handling Notes

fayaz T K
Tera Contributor

Hi Team,

I'm actually facing an issue with Special handling note.

The "short description" or the heading of the special handling note is not getting displayed in a single Line format in the popup window, rather than that, it is getting displayed as word by word as new line (only about the short description of the Special handling note). 
Do we have any option to make changes or customise this? 

Note :- Message is working fine and able to display in the customised form as per the changes we does.



10 REPLIES 10

dsuskauer
Tera Contributor

I learned that this is a known issue in Xanadu. Is that the version you're on? Here's the KB on it: https://support.servicenow.com/kb?id=kb_article_view&sys_kb_id=fb6bf304938b9610057c7de86cba1020

Seems like SN is waiting for Dev/Engineering to fix it with no known workaround at this time.

seanboggess
Tera Contributor

Just now upgrading to from Washington DC (to Yokohama) and am seeing the issue described here.  Unable to access the KB that was referenced.  Does there seem to be any hope of a resolution to it?  Figured since the issue has been around since Xanadu, there would be a fix for it by now.  We use these fairly significantly and am hoping to avoid going into each one and rewording them so they can display normally. 

RitunjaiC
Kilo Contributor

Hi Everyone,
Do we have any solution for this issue yet or any workaround you guys have for a temporary fix.

Thanks

Known bug. No fix yet. Only apparent workaround would be to reword the short description, which I anticipate spending time doing after we upgrade. 

ARod
Kilo Contributor

I have resolved this using a client script:

 

The awkward line breaks in the short description happen because it's displayed inside a table cell, which automatically wraps the text to fit the column's width. Since the cell isn't wide enough and no styling prevents wrapping, the text breaks awkwardly onto multiple lines. I fixed this by applying styles that force the description to stay on one line and expand naturally, allowing the full sentence to display without breaking.

 

addLoadEvent(function () {
    var observer = new MutationObserver(function () {
        var shnModal = document.querySelector('#special_handling_notes');
        if (shnModal) {
            // Fix short description layout
            var tableHeaders = shnModal.querySelectorAll('.notecardTable .shnMessage');

            tableHeaders.forEach(function (td) {
                td.style.whiteSpace = 'nowrap';
                td.style.overflow = 'visible';
                td.style.textOverflow = 'unset';
                td.style.display = 'block';
                td.style.width = 'auto';
            });

            observer.disconnect();
        }
    });

    observer.observe(document.body, { childList: true, subtree: true });
});