How to display a one column in the list view of related list to only particular group ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2022 10:15 AM
Hi All,
Actually in the form we have some related lists, so in the one of related list's, in the list view, i want to display one column to only two groups(Assistants and administrators), only those two groups people able to see those column in the list view?
Please help me to achieve this
Thanks
Hemachandra

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2022 08:32 PM
You would need to create two ACLs to restrict read access to these two fields.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2022 08:37 PM
Hey,
There are two ways you can do this
Approach #1:
- You can just go down to the related list on the form, Right click > Configure > List layout and in the slushbucket you can have relevant fields on the right
- Moving on to roles part, you need to have a client script to basically hide the rows altogether:
if(g_user.hasRole('role_name')){
g_form.showRelatedList('related_list_table_name');
}
else{
g_form.hideRelatedList('related_list_table_name');
}
Approach #2
If you want to check that related list should show all columns to admins/privileged roles and restrict to two column when users belongs to that group.
- You will need to create a new relationship with that table and with same filter as on the existing one with relevant columns
- Again you will have to use above code, to show and hide your relevant related list based on roles
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2022 09:06 PM
Hi Aman
Thanks for the Response
Actually i have one related list like "Delegates", in that related list , currently for all users they can see three columns , so my concern was if the person belongs to (Adminstrators, Assistants) these two groups , for then i need to display one more column like "user" in that related list to that two group's people?
Thanks
Hemachandra

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2022 09:19 PM
I don't think you will be able to hide/show a column based on some condition in a related list.
What you can try is to create a read ACL for user field and set answer=false in the ACL advanced script if the user belongs to that group.
But again you are gonna have to try how well it works out.
Aman Kumar