Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Standard change

Idor
Kilo Contributor

Hi, please help:)

 

Issue

Not able to implement a standard change where the processflow ribbon on top does not show. The fields in the standard change ithat I have created s not showing. The form for normal change is showing, so it looks like it's not able to pick the standard change template.

I have tried everything!, well, not everything sense it's still not working. But I have been trying for hours and days to get this working, but with no luck.

 

* I have created a new form for standard change

* The standard change form contains the <View>. When I have chosen the standard change for adding cpu/memory the form shown is for nomal change. Clicking configure->form layout I see all the fields for this form. I can change to the ViewName "ServerUpgrade". When i save this and go out and into the form again it just reverts to the old view, normal change.

* I have tried to hide the process flow bar using a UI policy (several changes to script to try to enfoce it)

 

It's a bit complicated to explain all the things I have tried. Is there a step-by-step instructions on how to do this? Any help would be much appreciated.

 

 

Service Now: Zuric

Access: I have elevated rights in service now.

 

Idor_2-1769409506620.png

 

 

Idor_1-1769409460199.png

 

Idor_5-1769411042852.png

 

 

Idor_0-1769409331471.png

 

Idor_4-1769409929738.png

 

Script to hide:

function onCondition() {
    // This function searches through all elements, including hidden Shadow DOMs
    function hideProcessFlow() {
        var allElements = document.querySelectorAll('*');
        allElements.forEach(function(el) {
            // Check for the class or if it's the specific Zurich process container
            if (el.classList.contains('process_flow') || el.tagName === 'NOW-PROCESS-FLOW') {
                var row = el.closest('.form-group') || el.closest('tr') || el;
                row.style.setProperty('display', 'none', 'important');
            }
            // Check inside Shadow Roots (Zurich's hidden layer)
            if (el.shadowRoot) {
                var shadowFlow = el.shadowRoot.querySelector('.process_flow') || el.shadowRoot.querySelector('now-process-flow');
                if (shadowFlow) {
                    shadowFlow.style.setProperty('display', 'none', 'important');
                }
            }
        });
    }

    // Run immediately and then again after 1 second to catch late-loading elements
    hideProcessFlow();
    setTimeout(hideProcessFlow, 1000);
    setTimeout(hideProcessFlow, 3000);
}

 

0 REPLIES 0