How to hide some fields from the table

shaik_irfan
Tera Guru

Hello Everyone,

We have a requirement where i need to hide some fields from Customized table since we do not Active checkbox option i think i need to write some script to hide the fields.

Can anyone please help me out how to achieve this   ?

List of field what i have is:

Network-ABA

Network-Operations

Network-Infra-Su

Network-Infra-Mu

Network-Infra-Ku

Network-Infra-Zoa

Network-Software

Network-Hardware

Network-Admin

I want to hide the fields which starts from Network-Infra:

Network-Infra-Su

Network-Infra-Mu

Network-Infra-Ku

Network-Infra-Zoa

1 ACCEPTED SOLUTION

Please create Before Query Business Rule with below code, it should work.



(function executeRule(current, previous /*null when async*/) {


// Add your code here


current.addQuery("<FIELD NAME WHICH HOLD THE VALUE>",'NOT LIKE' ,'%Network-Infra%');


})(current, previous);


View solution in original post

18 REPLIES 18

Shishir Srivast
Mega Sage

If you just want to hide the field when form loads and with not other complex condition then it's always recommended to use UI Policy. UI policies offer an alternative to client scripts for dynamically changing information on a form. Please trry and let us know.


find_real_file.png


Sorry Shishir,



I explained it wrong these are the list of records in Customized table and i want to hide more than 20 recrods


UI Policy will be the best practice to hide the fields.


Regards
Harish

Harish,




But my actual requirement is to hide some records for all the users





in that case you can do through query BR. Please check if below post helps.


Hide record from list


How to hide some records in the list in sc_cat_item table for some users