I am able to hide a field on Clients Scripts, Global pages with header footer using $("#x_<fieldname>").hide();
but when I use the same code in list page start up script it does not work.
Also tried
$('[data-name="x_<fieldname"]').hide(); and $(this).fields("<fieldname").visible(false); does not work.
Where am I going wrong
I need to hide the field only on some pages in client scripts and if linked to a certain user level
Thanks