Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Hide x in mrvs

SS1510
Tera Contributor

I want to hide 'X' in MRVS on on Load , the script available on community is not working .Does anyone have idea about it.

1 ACCEPTED SOLUTION

@SS1510 

this worked for me in onLoad client script on sc_req_item Table

Ensure "Isolate Script" = False for your client script

If this field is not on form then from list make it false

function onLoad() {
    //Type appropriate comment here, and begin script below
    setTimeout(function() {
        var items = document.getElementsByClassName('btn icon-cross btn-sm multi-row-delete-row');
        for (var i = 0; i < items.length; i++)
            items[i].style.display = 'none';
    }, 3000);

}

AnkurBawiskar_0-1750755155975.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

12 REPLIES 12

@SS1510 

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@SS1510 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@SS1510 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader