How to hide List or Library column and filter with same?

Hello, @community,
I am filtering list or library control with CAML query, Here is code,

function filterDT(dt) {

  dt.filter = "<Contains><FieldRef Name='MyTUMid'/><Value Type='Text'>"

    + fd.field('Mytumlogin').value + "</Value></Contains>";



I want to hide the column name 'MyTUMid', and also i am filtering my List or library with same fields, is there is a possibility i just hide this column without affecting filter functionality as i need both requirements.

Thanks in Advance.

Hello @harshp924,

Using CAML query, you can filter values in List or Library control by any field, even hidden in the list view.