Hide field on list and form view - ACL?

kris29
Tera Contributor

Hi folks,

I just want to know from you if this approach is good:

I need to hide a column in list view and form view for all users.
I have created an ACL role, on READ, my_table.my_field, script: answer = false; without roles.
The result is: the field in the form view is hidden, the data in the list view is hidden, the columns in the list are still available.
find_real_file.png

I have removed my field in the list layout and in the personalized list and after that I added an ACL for my field "add_to_list" with role admin.

Is this the right way to hide the column in both list and form view for all users?

1 ACCEPTED SOLUTION

DrewW
Mega Sage
Mega Sage

If memory serves you can also just set Active to false and it will disappear also.  The way you did it is fine.

 

View solution in original post

1 REPLY 1

DrewW
Mega Sage
Mega Sage

If memory serves you can also just set Active to false and it will disappear also.  The way you did it is fine.