Hi,
I have a hyperlink column in a SharePoint list and right now in the custom Power Apps Form it is showing the full URL.
I am looking to create a button that is linked to whatever URL is in the column. Keep in mind that this URL will be unique for different Items in the SharePoint List, since they are links to job folders. At the moment, the URL takes up a lot of space. I want to condense it to either custom text or convert to a button within Power Apps (the URL is obtained by a Power Automate property)
Thanks!
Hello all
it should look as follows
Launch("https://websitedomain",
{name: "webpage tile"},
LaunchTarget.New)
This will allow to open the URL
When you use the button inside the form Datacard you can't use this function as it is
On your screen Advanced > OnVisible
then set the variable
Set(varURL, "Google.com");
and now go to your form control button Advanced > OnSelect and use only this
Launch(varURL);
It will work
kindly let me know if its works for you
Hi @Anonymous ,
You are launching the control, not the field. If the URL is also in the control, you need
Launch(URL.Text)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
That didn't work for me, it says there is an error with the coding - what have I missed?
@Anonymous ,
You are better with (replace with your name).
Launch(ThisItem.YourURLFieldName)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Hi,
This fixed the clicking issue - I needed to change the mode to Edit for the 'Folder Location' field.
But now I get this error when I click it:
Hi @Anonymous ,
What mode is the form in - that will only work in Edit mode.
I have done as you requested - I still can't actually click the button though, nothing happens when I click it.
Could you please use Parent.Default directly
Set(varURL, Parent.Default);
Launch(varURL);
or else
Set(varURL, ThisItem.columnName);
Launch(varURL);
columnName is the Name of the column having the URL value
Hi,
I have done as you mentioned. I have noticed however, my button is not actually clickable in SharePoint.
Also, this is the HTML variable that is produced by Automate - how do I pump this into the Set varURL function above? Do I just copy/paste the entire thing?
MS.Ragavendar
14
LC-26081402-0
10
stampcoin
6