Skip to main content

Notifications

Community site session details

Community site session details

Session Id : adNzmUiMdSjsH3cpvOnzOU
Power Apps - Building Power Apps
Unanswered

Create hyperlink button

Like (0) ShareShare
ReportReport
Posted on 14 Jan 2022 03:39:46 by

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!

 

JackShaww_0-1642131451933.png

 

  • Valcoren Profile Picture
    6 on 20 Oct 2023 at 15:55:29
    Re: Create hyperlink button

    Hello all 

    it should look as follows 

    Launch("https://websitedomain",
    {name: "webpage tile"},
    LaunchTarget.New)

     

    This will allow to open the URL 

  • zaheer_ahmad Profile Picture
    2 on 26 May 2023 at 11:54:23
    Re: Create hyperlink button

    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

  • WarrenBelz Profile Picture
    146,792 Most Valuable Professional on 20 Jan 2022 at 03:45:28
    Re: Create hyperlink button

    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

  • Community Power Platform Member Profile Picture
    on 18 Jan 2022 at 01:55:30
    Re: Create hyperlink button

    That didn't work for me, it says there is an error with the coding  - what have I missed?

    JackShaww_0-1642470917130.png

     

  • WarrenBelz Profile Picture
    146,792 Most Valuable Professional on 18 Jan 2022 at 01:50:18
    Re: Create hyperlink button

    @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

     

  • Community Power Platform Member Profile Picture
    on 18 Jan 2022 at 01:47:48
    Re: Create hyperlink button

    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:

    JackShaww_0-1642470458281.png

     

  • WarrenBelz Profile Picture
    146,792 Most Valuable Professional on 18 Jan 2022 at 01:30:19
    Re: Create hyperlink button

    Hi @Anonymous ,

    What mode is the form in - that will only work in Edit mode.

  • Community Power Platform Member Profile Picture
    on 14 Jan 2022 at 05:39:57
    Re: Create hyperlink button

    JackShaww_0-1642138774530.png

    I have done as you requested - I still can't actually click the button though, nothing happens when I click it.

  • premkumar2810 Profile Picture
    55 on 14 Jan 2022 at 05:36:58
    Re: Create hyperlink button

    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

  • Community Power Platform Member Profile Picture
    on 14 Jan 2022 at 05:25:06
    Re: Create hyperlink button

    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?

    JackShaww_0-1642137890838.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
MS.Ragavendar Profile Picture

MS.Ragavendar 14

#2
LC-26081402-0 Profile Picture

LC-26081402-0 10

#3
stampcoin Profile Picture

stampcoin 6

Overall leaderboard