cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Make PowerApps Gallery items Clickable

Hi All,

 

i have a gallery with list items arranged in it as below, 

 

A      B      C      D

E       F      G      H

I        J

 

how can i make them clickable in PowerApps 

Thanks in advance

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
MVP

Re: Make PowerApps Gallery items Clickable

Hi,

 

Where is the data stored and does every record in your list have a different hyperlink?

View solution in original post

6 REPLIES 6
Highlighted
Microsoft
Microsoft

Re: Make PowerApps Gallery items Clickable

Hello @VineethKN

Please try the following:

1. Create a blank application and add a blank vertical gallery control to the page.

2. Bind the gallery to a table as following: Gallery1.Items=Table({one:"A", two:"B", three:"C", four:"D"},{one:"E", two:"F", three:"G", four:"H"})

2. Add four buttons to the gallery. Set
Button1.Text=ThisItem.one

Button2.Text=ThisItem.two

Button3.Text=ThisItem.three

Button4.Text=ThisItem.four

3. Set Button actions as following:
Button1.OnSelect=Notify(ThisItem.one)

Button2.OnSelect=Notify(ThisItem.two)

Button3.OnSelect=Notify(ThisItem.three)

Button4.OnSelect=Notify(ThisItem.four)

 

Try clicking on buttons now.

You can bind the gallery now to something else and your gallery items will still be clickable and referencing the proper informqation. See the screenshot below where the element "H" is clicked. Note that you can also style the button controls so they don't look like buttons (change color, borders and so on):

 

ClickableElements.png

I hope this is what you're looking for.

 

Highlighted
Helper I
Helper I

Re: Make PowerApps Gallery items Clickable

Hi Dinusc, thanks for the reply, but this is a dynamic content Gallery, and i want it to be hyperlink , not with the button, can you please help me out with that  

Highlighted
MVP

Re: Make PowerApps Gallery items Clickable

Hi,

 

Where is the data stored and does every record in your list have a different hyperlink?

View solution in original post

Highlighted
Helper I
Helper I

Re: Make PowerApps Gallery items Clickable

Data is stored in Sharepoint list , all the hyperlinks will be having different Navigations.

Highlighted
Microsoft
Microsoft

Re: Make PowerApps Gallery items Clickable

You should be able to use this with a SharePoint list. You can also replace the button control with an HTMLText controls. You can then have something like this:

HtmlText1.HtmlText="<A Href='"&ThisItem.one&"'>"&ThisItem.one&"</A>"

Highlighted
MVP

Re: Make PowerApps Gallery items Clickable

Hi

 

Try this, I am using CDS as my datasource but i assume is similar with Shareppoint list. Smiley Wink

On your Gallery control, click on your Image and go to On Select. Enter the command below:

 

Launch(ThisItem.Website)

 

* Website is my CDS field name so i reckon you can replace that with your Sharepoint list column that is storing your hyperlink for that record.

(screenshot in attachment)

 

 

 

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,903)