Forum Discussion
Anthony-123
Apr 06, 2023Iron Contributor
Make a value clickable in an SPO List Gallery View
When in List view, I have values that can be clicked to enact a desired action. When I display the list as a gallery, clicking on a value opens the item on the right side of the browser window. ...
ganeshsanap
Apr 07, 2023MVP
Anthony-123 Try below things and it should work for you:
- Set hideSelection to true like:
"hideSelection": true,
- Then remove below part in Gallery view JSON:
,
"customRowAction": {
"action": "defaultClick"
}
- Refer column formatting of columns in your gallery view formatting using columnFormatterReference
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs
Anthony-123
Apr 07, 2023Iron Contributor
This makes everything not-clickable.
So, the issue is that (by default) clicking a tile in gallery view is opening the right hand panel to view the full card (as I've designed it in PowerApps). The "clickable" values in this panel are not clickable unless the panel is in Edit mode.
One solution would be to prevent the panel from opening upon clicking a tile and make the links in gallery view clickable. Still, this item should be selectable (there's a radio button on the top right corner) and Edit in the SPO menu should allow the item to be opened in the right hand panel for editing values. I can always edit valued in List view so this second part is less important (although very handy).
The other solution would be for the right hand panel to open when the tile is selected and the clickable values in the item would be active without having to enter Edit mode.
So, the issue is that (by default) clicking a tile in gallery view is opening the right hand panel to view the full card (as I've designed it in PowerApps). The "clickable" values in this panel are not clickable unless the panel is in Edit mode.
One solution would be to prevent the panel from opening upon clicking a tile and make the links in gallery view clickable. Still, this item should be selectable (there's a radio button on the top right corner) and Edit in the SPO menu should allow the item to be opened in the right hand panel for editing values. I can always edit valued in List view so this second part is less important (although very handy).
The other solution would be for the right hand panel to open when the tile is selected and the clickable values in the item would be active without having to enter Edit mode.
- ganeshsanapApr 10, 2023MVP
Anthony-123 If you want to open the list form (in right pane) in edit mode by default, then use editProps action inside customRowAction in your original JSON like:
, "customRowAction": { "action": "editProps" }
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs