Re: Hide field in Search Criteria
I will give you an example so you won’t have to get drunk to understand me
I have a user table.
I want to be able to search by 3 fields (userid, first name, last name) if I am the admin, and only search by 2 fields (first name, and last name) if I’m just a normal user.
I can handle the getting the userlevel to determine if I’m an admin or not, but if I am not an admin, I want to hide the search field for userid, so they don’t even see it.
I tried
sc_display_field({userid},off);
and
sc_display_field({userid},“off”);
and
sc_display_field({userid},‘off’);
in the onInit, and even on the onRefresh on the “search” tab, but I can’t seem to make it disappear.
Did that help?