cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
VineethKN
Level: Powered On

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
Laney
Level: Powered On

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
Microsoft dinusc
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.

 

VineethKN
Level: Powered On

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  

Laney
Level: Powered On

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

VineethKN
Level: Powered On

Re: Make PowerApps Gallery items Clickable

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

Microsoft dinusc
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>"

Laney
Level: Powered On

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,403)