cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pkrajput
Level: Power Up

Dynamic Hyperlinked Icon from Google Sheets

Hello Everyone,

I had made a simple app which displays the data from a google sheet in accordance to the filter selected from the drop down menu. It is a static data app. But I also want to redirect the user to a specific (unique to each drop-down entry) URL on clicking an icon. I have tried Launch("url") but it does not provide dynamic capabilities and a single link remains freezed in the icon. Please help by suggesting a workaround. I have attached the screenshots here.

P.S. - The URLs are unique for each Asset code and filled in the google sheets.

1 REPLY 1
mdevaney
Level 8

Re: Dynamic Hyperlinked Icon from Google Sheets

@pkrajput 

Consider the following example.

 

You have a dropdown with the Items property set to the following code

 

["1","2","3"]

 

You also have a button.  When the user clicks the button a web page will be launched.  The URL is determined by the selection made in the dropdown.

 

Put this code in the OnSelect property of your button.

 

Switch(
    Dropdown1.SelectedText.Value,
    "1",Launch("www.google.com"),
    "2",Launch("www.msn.com"),
    "3",Launch("www.yahoo.com")
);

 

Do the example here and then modify the code to work in your own app!

 

---
Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."

Helpful resources

Announcements
thirdimage

Power Automate 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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 359 members 5,494 guests
Please welcome our newest community members: