Hide field in Start up scripts, client scripts

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
crash
User
Posts: 148

Hide field in Start up scripts, client scripts

Post 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


MichaelG
User
Posts: 1095

Post by MichaelG »

Right click, Inspect to check the actual element attributes you want to hide.


crash
User
Posts: 148

Post 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


Post Reply