Hide field in grid edit but keep on list

I have hidden a field in grid edit and inline edit using client script, listpage, startup script $(‘[data-name=“”]’).hide();This allows for the field still to be edited in the background.
I need to hide this field in the list page after editIf I hide in gridedit/inline edit it also hide in list… i need it to show in the list… is there a way around this ?Thanks

Try the FieldVisibility extension (for registered users only), which allow you to hide field for grid edit but show for list.

It’s doing the same thing. If I hide in grid edit / inline edit it also hides on list page. I’ve used 1 and 0 and “1” and “0”.

All this is in the extention showing as Bool
What am I doing wrong.

Can anyone help with this problem? I’m using the field visibility extensionThis the table option are set to bool… I use 1 and 0
I would expect the field to not be visible on one of those options,
I’ve tried same with userid and userlevel… it either hies it everywhere or shows it everywhere

Has anyone else found this error with this extension, mine should work but no luck

I made something somehow similar to you.
I used CurrentAction to determine if the List in GridEdit mode:

	if ((CurrentPageID() == "list" && CurrentAction == "gridedit") || (CurrentPageID() == "add") || (CurrentPageID() == "edit")) {

		Field1.Visible = false;
		Field2.Visible = false;
		...
		
	}

This is great thanks, that workedHow would I include Inline Edit ?

For Inline Edit, you need to figure it out how to intercept creation of the DOM elements and hide them out. (you need to create a setInterval function)
I dot no use Inline Editing at all, so I have no idea of any tips & tricks.

For some reason this code is not working for me anymore, can anyone confirm where in server events and client scripts this must go. List Page, Page Load not working

Try Page_Render

Thanks that’s working but now my autofill does not work anymore for the non-visible item.
Any advice please ?

Make sure that you do not hide any of the auto fill parent fields.

I’ve checked that, I don’t use hide anywhere

Enable debug and press F12 → Console/Network to check network response and see if there is any error on the page.

No error

If you are a registered user, you’d better send your project file/database to the support email for resolution.