Page 1 of 1
Hide field in Start up scripts, client scripts
Posted: Tue Dec 20, 2022 4:52 am
by crash
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
Re: Hide field in Start up scripts, client scripts
Posted: Tue Dec 20, 2022 6:24 am
by MichaelG
Right click, Inspect to check the actual element attributes you want to hide.
Re: Hide field in Start up scripts, client scripts
Posted: Wed Dec 21, 2022 4:54 am
by crash
I've inspected the field, and indicates data-name="Surname"
So I use $('[data-name="Surname""]').hide();
I need to hide this column
in client scripts, list page start up, start up