Making the Filter conditions Read only

Akhil Kumar1
Mega Sage

Hello everyone,

I have a question

We have related list inamed "Afftected CI" n our change tickets when i am clicking on the edit button in the related list

its opening a new page , in that new page i have two filter conditions   i need to make one of the filter conditions as read only

these filter coniditons are setted via list control ,

Kindly help me for this query

Thanks,

Akhil

1 ACCEPTED SOLUTION

Akhil Kumar1
Mega Sage

Hi Guys ,



I got a solution for this using DOM manipulations


Here is the code snipet using dom



var test=document.getElementsByClassName('filter_row_condition');


for(vari=0;i<test.length;i++)



{



test[i].style.display='none';


alert("hi");



}



"The same code is working fine in Javascriptdebbuger but at the same time when i am trying the code in UI script the values are returning undefined"



Kindly help


View solution in original post

4 REPLIES 4

Akhil Kumar1
Mega Sage

Hi Guys ,



I got a solution for this using DOM manipulations


Here is the code snipet using dom



var test=document.getElementsByClassName('filter_row_condition');


for(vari=0;i<test.length;i++)



{



test[i].style.display='none';


alert("hi");



}



"The same code is working fine in Javascriptdebbuger but at the same time when i am trying the code in UI script the values are returning undefined"



Kindly help


Not familiar with DOM manipulations, where is this on ServiceNow?

ANy client side code where you use the Document Object Model instead of Servicenow provided api is considered DOM Manipulation.

-Anurag

Anurag Tripathi
Mega Patron
Mega Patron

you can use the omit filters/ filter roles also on the list control.


-Anurag