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. ...
muhammad_kekereekun
Apr 06, 2023Iron Contributor
In order to make the values clickable in Gallery view, you will need to add an OnSelect action to the gallery item. Here are the steps:
1. Select the gallery control and click on the Edit button to open the Gallery control in Edit mode.
2. Click on any gallery item to select it.
3. In the right-hand pane, scroll down to the OnSelect property and click on the Edit button (pencil icon).
4. In the formula bar, enter the action that you want to perform when the gallery item is clicked. For example, if you want to start a chat in Teams, you could use the formula: TeamsChat.StartNewChat('email address removed for privacy reasons')
5. Click outside of the formula bar to save the formula.
6. Repeat steps 2-5 for each gallery item that you want to make clickable.
Once you have added the OnSelect action to each gallery item, clicking on the item will trigger the action that you specified.
1. Select the gallery control and click on the Edit button to open the Gallery control in Edit mode.
2. Click on any gallery item to select it.
3. In the right-hand pane, scroll down to the OnSelect property and click on the Edit button (pencil icon).
4. In the formula bar, enter the action that you want to perform when the gallery item is clicked. For example, if you want to start a chat in Teams, you could use the formula: TeamsChat.StartNewChat('email address removed for privacy reasons')
5. Click outside of the formula bar to save the formula.
6. Repeat steps 2-5 for each gallery item that you want to make clickable.
Once you have added the OnSelect action to each gallery item, clicking on the item will trigger the action that you specified.
Anthony-123
Apr 07, 2023Iron Contributor
I've already customized the right hand pane in PowerApps so I don't think your instructions are applicable. I've been able to use OnSelect in PowerApps using the following formula
Launch(Concatenate("https://teams.microsoft.com/l/chat/0/0?users=",DataCardValue4))
Although, the pane needs to be in Edit more for the item to be clickable which is not ideal. Do you have a solution for this?