cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Patron
Post Patron

Links in power apps

Hello Community Experts,

I have a label in power apps in which data is coming from a text field of sharepoint.

I want to make that label itself as link, like whatever is fetched in that label should be in the form of a link

Kindly guide

Best Regards,

Sumaira

4 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Super User
Super User

Re: Links in power apps

Hi @Sumaira ,

 

Use HTML text control instead of a Label in your form to achieve this. The label control can't render the HTML tags.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
Krishna
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Proud to be a Super User!

Regards,
KrishnaV
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

View solution in original post

Highlighted
Super User
Super User

Re: Links in power apps

Hi @Sumaira 

 

To do this, please insert the following into your label's OnSelect property:

Launch(Self.Text)

 

as long as the label content is a properly formatted URL, this will launch a new window with that link,

 

Kind Regards,

Sancho

 

@iAm_ManCat

Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


View solution in original post

Highlighted
Super User
Super User

Re: Links in power apps

Hi @Sumaira ,

 

The syntax is as below:

Launch(Self.HtmlText)

 
I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
Krishna
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Proud to be a Super User!

Regards,
KrishnaV
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

View solution in original post

Highlighted
Community Support
Community Support

Re: Links in power apps

Hi @Sumaira ,

 

Another way is to use HTML script to create a link in HTML Text control, like this.

"<a href=" & "https://www.google.com/"&"> "& "https://www.google.com/" &"</a>"

replace the  "https://www.google.com/" to text field of sharepoint

Hope this helps.

Sik

View solution in original post

7 REPLIES 7
Highlighted
Super User
Super User

Re: Links in power apps

Hi @Sumaira ,

 

Use HTML text control instead of a Label in your form to achieve this. The label control can't render the HTML tags.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
Krishna
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Proud to be a Super User!

Regards,
KrishnaV
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

View solution in original post

Highlighted
Post Patron
Post Patron

Re: Links in power apps

@KrishnaVThanks a lot for the response

Can you please share the syntax for html?

 

Highlighted
Super User
Super User

Re: Links in power apps

Hi @Sumaira 

 

To do this, please insert the following into your label's OnSelect property:

Launch(Self.Text)

 

as long as the label content is a properly formatted URL, this will launch a new window with that link,

 

Kind Regards,

Sancho

 

@iAm_ManCat

Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


View solution in original post

Highlighted
Super User
Super User

Re: Links in power apps

Hi @Sumaira ,

 

The syntax is as below:

Launch(Self.HtmlText)

 
I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
Krishna
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Proud to be a Super User!

Regards,
KrishnaV
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

View solution in original post

Highlighted
Community Support
Community Support

Re: Links in power apps

Hi @Sumaira ,

 

Another way is to use HTML script to create a link in HTML Text control, like this.

"<a href=" & "https://www.google.com/"&"> "& "https://www.google.com/" &"</a>"

replace the  "https://www.google.com/" to text field of sharepoint

Hope this helps.

Sik

View solution in original post

Highlighted
Super User
Super User

Re: Links in power apps

Hi @Sumaira,
I just want to follow up with you on this issue to see is it resolved or still you see any challenges.

If you see any challenge/need further help let me know I am always happy to help.

Regards,
Krishna
If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Proud to be a Super User!

Regards,
KrishnaV
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.
Highlighted
Post Patron
Post Patron

Re: Links in power apps

@KrishnaV @v-siky-msft @iAm_ManCat Thanks a lot for the help 

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response 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 (3,853)