cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
fnabila
Frequent Visitor

How to make hyperlink clickable?

Hi, I have a form that the data source came from google sheet. I know that Google has restricted a lot of things, so I cant display image from google drive in the form using image function, I did asked a question about this last week (here). Currently my detail screen shows the url of the image and it is not clickable. 

example.png

 

When I open the app in phone, i can open the link by copying it and open it in browser. I don't want that, prefer it to be clickable.

Really appreciate your help 🙂

1 ACCEPTED SOLUTION

Accepted Solutions
mdevaney
Super User III
Super User III

@fnabila 
There are two ways of doing it:

 

#1 - Use an HTML Text control with this code in the HTMLText propery

 

"<a href="""&Parent.Default&""">"&"Parent.Default"&"</a>"

 

#2 - You can create a hyperlink by changing the OnSelect property of the label to this code

 

Launch("Parent.Default")

 

Then to let the user know its a hyperlink make the text underlined and change the color to blue.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

View solution in original post

4 REPLIES 4
mdevaney
Super User III
Super User III

@fnabila 
There are two ways of doing it:

 

#1 - Use an HTML Text control with this code in the HTMLText propery

 

"<a href="""&Parent.Default&""">"&"Parent.Default"&"</a>"

 

#2 - You can create a hyperlink by changing the OnSelect property of the label to this code

 

Launch("Parent.Default")

 

Then to let the user know its a hyperlink make the text underlined and change the color to blue.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

View solution in original post

v-siky-msft
Community Support
Community Support

Hi @fnabila .

 

Another way is to use HTML script to create a hyperlink in HTML Text control.

Replace the Label by HTML Text control, then set HtmlText property as follows.

"<a href="& Parent.Default &">" & Parent.Default & "</a>"

Sik 

Thanks, @mdevaney 

I have a question. If the link is in a field in a card that is part of the form, it seems like this method works when the form is in Edit mode. What needs to happen is the launch when the form is in the View mode. Clicking on the field in Edit mode should NOT launch the site, since we are trying to edit the link. Do you have any idea on how to accomplish this?

@kirillperian 

Im happy to help with this question but can you please start a new thread and tag me?

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

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