Show Field in "Grid View" but Hide in Detail View #16926
-
I would like to show a field in the "Grid View", but hide that field in the "Detail View". Previously I had the field marked as "Invisible" to hide the field in the Detail View. To add the field to the Grid View, I checked "Visible in GridView" but that does not show the field without also unchecking "Invisible". Once "Invisible" is unchecked, however, the field also shows in the Detail View (which I don't want). Is there any setting to show a Field in the Grid View without also showing in the Detail View? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is not possible via the class editor. I see 2 reasonable options to solve this:
Dynamically changing the json helped me a lot in the past for making things like this a little bit more flexible in my projects based on some logic but for sure you should not overuse this approach to keep things simple. |
Beta Was this translation helpful? Give feedback.
This is not possible via the class editor. I see 2 reasonable options to solve this:
Create a custom object layout without the field which should not be visible on the data object detail and assign this via user permissions.
Hook into the pre-send-data event of the backend object detail json call and overrule the visible flag there.
Dynamically changing the json helped me a lot in the past for making things like this a little bit more flexible in my projects based on some logic but for sure you should not overuse this approach to keep things simple.