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

How to make a label a hyperlink

What i want to do is make the lable box beside the lable specifications a hyperlink? Is this possible and how? I have tried changing it to a control button but no luck. Any help is greatly appreciated, thanks.

Screenshot_2018-01-05_1551.png

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: How to make a label a hyperlink

Have you tried the HTMLtext field approach?  It it works then you would just set the visbility of the SQL field with the URL info to false and move the HTMLtext field on top of the SQL field.



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

14 REPLIES 14
Super User
Super User

Re: How to make a label a hyperlink

You can use the HTML Text field. If the URL value is already in another field you could just add the HTML Text field and create the link using the value from your label field.

 

HtmlText:  "<a href=" & Label1.Text & ">Get Specifications</a>"



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
Anonymous
Not applicable

Re: How to make a label a hyperlink

You can also use the Launch() function.

Reference: https://docs.microsoft.com/en-us/powerapps/functions/function-param

 

Do note that this sometimes does not work properly on some version of IE11. (I didn't in mine until I allowed ALL pop-ups from powerapps)

 

Add the Launch() function on the OnSelect property of your label.

david9068
Level: Powered On

Re: How to make a label a hyperlink

I have entered this into the OnSelect field

 

"Launch(https://atagarryson.sharepoint.com/intranet/SiteAssets/Forms/AllItems.aspx?slrid=adef3c9e%2De095%2D5...)"

 

And this is what I have in the Text Field "ThisItem.Application_x0020_pic" The data is coming from a sharepoint list.

 

When i preview the app the link is still not clickable. Is there something im missing?

 

I have tried using a button with the above properties but no luck.

 

 

Anonymous
Not applicable

Re: How to make a label a hyperlink

Enter the hyperlink in double quotation marks. e.g.

Launch( "google.com" )

 

And note that this alone doesn't make the label "clickable". Sure, if you click on it (assuming everything runs as expected), it will open another tab but it won't do alternate hover and pressed behavior like normal links do. You'd have to add those yourself.

david9068
Level: Powered On

Re: How to make a label a hyperlink

Thanks for telling me that, i taught doing the above would make it a clickable link. 

 

Do you know what properties i need to change in order to make it clickable. I have done what you said and it allows me to cmd and click the link in the field where you add functions but when i preview the its still just showing as text in a label. 

 

Do you have any examples of how this is done? 

 

I have a deadline due tomorrow and would love to have this feature up and running.

Anonymous
Not applicable

Re: How to make a label a hyperlink

Yeah. It will just show text in a label but if you click/select it, it will open a new tab.

 

You can change the values of the following properties:

  • Color
  • HoverColor
  • PressedColor

To give the label alternate visuals.

 

For example, apply the following property-values to your label

Color: RGBA( 63, 189, 191, 1 )
HoverColor: RGBA( 63, 125, 191, 1 )
PressedColor: RGBA( 89, 126, 165, 1 )

would give the label a blue-ish color, a darker color when highlighted, and a paler color when pressed. 

 

 

david9068
Level: Powered On

Re: How to make a label a hyperlink

Hi, 

 

Sorry just getting back to this. The app is now live but the links are still not links. The only way to navigate to them is to highlight all the text and then right click and select search. That is the current work around.

 

But this way is not suitable for anyone using a tablet or mobile. I have followed all your instructions but still no luck.

 

The links are being pulled in from a SQL table and displayed in a label. Does this make any differene? 

Giving you as much detail as i can to make it a clearer picture for you.links.png

 

Thank you for all your time so  far, much appreciated. 

Super User
Super User

Re: How to make a label a hyperlink

Have you tried the HTMLtext field approach?  It it works then you would just set the visbility of the SQL field with the URL info to false and move the HTMLtext field on top of the SQL field.



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

david9068
Level: Powered On

Re: How to make a label a hyperlink

Hi Ive tried following those steps in the link below but i dont see a HTMLText property.

 

https://docs.microsoft.com/en-us/powerapps/controls/control-html-text

 

Do you think you could post an example?

 

And im currently using the online web app studio incase thats why i cant see HTML text field.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 57 members 3,554 guests
Please welcome our newest community members: