AnimaZer

Results 3 comments of AnimaZer

I tried to delete this block of code, as a result it turned out to add several blocks with fields, but still only the last active one is displayed

window.onload = function() { switch (document.querySelector("[id^=select2-dropdown_itilcategories]").title) { case "alter": document.querySelector("label[for^=twozerofourtwozerotwotwoninezerozerofield]").style.display = "none"; document.querySelector("input[name^=twozerofourtwozerotwotwoninezerozerofield]").style.display = "none"; document.querySelector("label[for^=oneonefivetwotwoeightzeroninethreeeightfield]").style.display = "none"; document.querySelector("input[name^=oneonefivetwotwoeightzeroninethreeeightfield]").style.display = "none"; document.querySelector("label[for^=fivesevenzeroeightzerooneninezerofivefield]").style.display = "none"; document.querySelector("input[name^=fivesevenzeroeightzerooneninezerofivefield]").style.display = "none"; document.querySelector("label[for^=twozerofivefivefourfivethreefourthreefourfield]").style.display = "none";...

it turned out to work around so if anyone is interested, I get the name of the category and if the name fits the condition, I hide unnecessary fields, I...