Skip to content

Show Field in "Grid View" but Hide in Detail View #16926

Discussion options

You must be logged in to vote

This is not possible via the class editor. I see 2 reasonable options to solve this:

  1. Create a custom object layout without the field which should not be visible on the data object detail and assign this via user permissions.

  2. 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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cancan101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants