Question on sc_field_display

Hi out there.

Maybe somebody faced this in the past.
I’m starting a grid in “search” mode and on the onScriptInit I want to hide some search fields, depending on some session variables. Some of those fields are created manually. They are not retrieved by the grid’s query. But I can’t hide anything there. Is it not working in a grid’s search?

The syntax seems correct: sc_field_display({competitor}, “off”);

Thanks