question

SanjayAdsure-6386 avatar image
0 Votes"
SanjayAdsure-6386 asked CaseyYangMSFT-4714 commented

SharePoint Modern list Column conditional show/Hide

Hi All,

Working on SharePoint Modern List. Applied List & Column formatting colors for various conditions. Now have a requirement like below:

If Owners are logged in then show 'Action' & 'Remark' columns
If other than Owners are logged in then hide 'Action' & 'Remark' columns

Can we apply show/hide logic depending upon the user logged in? Can this be feasible using Out of Box way? If not, what other options I am having?

Thanks,
Sanjay

office-sharepoint-online
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

CaseyYangMSFT-4714 avatar image
0 Votes"
CaseyYangMSFT-4714 answered CaseyYangMSFT-4714 commented

Hi @SanjayAdsure-6386,

Per my test, we can only show/hide columns in a list or library form such as New/Edit forms: Show or hide columns in a list or library form

And there is no available option to show/hide column conditional in list view. I would suggest you create two list with lookup column as a workaround.

1.Create one list without "Action" "Remark" columns(this list for users). For example:

142903-1.png

2.Create another list with "Action" "Remark" columns(this list for owners). And create lookup column get information from user list.

142808-2.png 142868-3.png

3.Set unquie permissions for Owner list.
Settings > List settings > Permissions for this list > Stop Inheriting Permissions

142885-4.png


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



1.png (8.0 KiB)
2.png (21.1 KiB)
3.png (6.5 KiB)
4.png (8.4 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @SanjayAdsure-6386,

I'm checking how the things are going on about this issue. Is there any progress on this issue?

0 Votes 0 ·

HI @CaseyYangMSFT-4714 ,

Sorry for late reply. I will be implementing this & update you here.

Thanks,
Sanjay

0 Votes 0 ·

Hi @SanjayAdsure-6386,

Never mind and thanks for your reply

0 Votes 0 ·