I have a field in Sharepoint defined as a hyperlink (a link to a document elsewhere on the site). When I create a customized form for the list using Powerapps, I only have the ability to include a field to store the URL address. How do I allow the user the ability to enter the display text? Each Hyperlink has an address and display text component.
when creating a button with a hyperlink - 1. ensure you have quotes around the address ... I just found this out by trial and error. ex: Launch("www.google.com")
However - I want to know how to get the link to open in a new tab and not take the user away from the app.
I'm sure it's something simple that I'm overlooking, but any help would be appreciated.
I'm sure this is probably a simple request...
I have a single text field that would like to have the url value be clickable.
I have the following formula for the field "Launch(ThisItem.AAUILinks)" but it doesn't work and I'm not seeing any thrown errors.
Note: I want it to make the entered link value an active hyperlink. Since the value can be changed based on user input it cannot simply be Launch("Address").
Am I missing something?
Hi @sidney80 this is likely due to the FormMode = View.
Pasting my comment earlier in the thread.
"When the Form control is in FormMode = View, it blocks the child control's behavior/actions (OnSelect = Launch in this case). A good workaround is to put the button outside the Form. Another one is to put your Form in Edit mode. We are discussing if we should change that behavior. In parallel we will work on updating documentation so developers are aware of this."
If it is a URL in text format you dont need to explicitly put quotes.
If not then something like this works for me. Where TextInput1 contains say "cnn"
Launch("https://www." & TextInput1 & ".com")
If this does not work for you let us know the details i.e. what is the value, what is the scenario (is the Launch button nested?), which browser are you using?, etc.
I did find I needed to encode the URL, so I replaced the colon and forward slash with %3A and %2F. That worked. I guess I could have used the "http://" in quotes to get around the encoding.
Continue your learning in our online communities.
Tomorrow, September 18th at 8am PDT
Features releasing from October 2019 through March 2020
Coming to a city near you
Fill out a quick form to claim your user group badge now!
Connect, share, and learn with your peers year-round
Register by September 5 to save $200