web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Getting URL to work in...
Power Apps
Suggested Answer

Getting URL to work in form from Excel Worksheet

(0) ShareShare
ReportReport
Posted on by
Hello,
 
I'm very new to Power App so I'm sorry that my terminology is wrong.  I'm building a new Power App canvas from one of the suggested solutions.  I'm using an Excel Worksheet as the data source. This worksheet has multiple rows for US States, and the columns include data on those states.  Several of the columns include URL in text format (so the complete URL is listed). 
 
On the right side of the MainScreen I have the RightContainer which is a list of states.  When a specific state is selected, the MainContainer (to the right) has a Form which lists the data from each column in a data card.  This is all working perfectly, but when it lists the URL, it is just listed as text and not as a hyperlink.  
 
I've been trying to find out how to populate the form with the URL in a way to make it 'Lauch' to that website when pressed, based on the state selected.  I can make a button, but when I use the Launch command, the same state is always launched because it isn't pulling the unique state's website (and I can't create the button inside the form or it won't launch).
 
Columns: State, WebSite1, Website2, Website3
 
Rows: Alabama, https://example1.com, https://example2.com, https://example3.com. 
 
I want the form to fill in the datacard with the URL and also let me select in to open a new window (or browser) and to go that website.
 
 
Categories:
I have the same question (0)
  • Suggested answer
    SebS Profile Picture
    4,826 Super User 2026 Season 1 on at

    In the gallery (I assume you using Gallery), add a button over the URL, set it to transparent (no text, no fill), and use it as the click target.

    Set the button’s OnSelect to:


    Launch(ThisItem.Website1)

    repeat it for each column containing URL


    This keeps the UI clean and makes sure the correct row’s link opens every time.
     

  • Suggested answer
    VASANTH KUMAR BALMADI Profile Picture
    322 on at

    No worries β€” your terminology is actually fine 👍
    This is a very common first-time Power Apps question, especially when working with Excel.

    The good news: you don’t need buttons at all, and you can make URLs clickable directly inside the form.

    βœ… Why it’s showing as plain text

    When Power Apps connects to Excel, all URL columns are treated as Text, not as hyperlinks.

    So the form correctly displays the value, but Power Apps will never auto-convert Excel text into clickable links.

    You must explicitly tell Power Apps to launch the URL.

    βœ… Correct solution (works inside forms)

    You’ll modify the Data Card that already exists in the form.

    🔹 Step-by-step

    1️⃣ Unlock the data card

    1. Click the form

    2. Select the Website data card (e.g. WebSite1)

    3. In the right panel β†’ click Unlock to change properties

    2️⃣ Select the DataCardValue label

    Inside the card, select the control that displays the URL
    (it’s usually called something like DataCardValue12).

    3️⃣ Change it from Label β†’ Link behavior

    Set these properties:

    Text

    ThisItem.WebSite1
    

    (or it may already be set automatically)

    OnSelect

    Launch(ThisItem.WebSite1)
    

    That’s it.

    Now the text becomes clickable.

    βœ… Optional: make it look like a hyperlink

    Set these properties on the same control:

    Color = Color.Blue
    Underline = true
    HoverColor = Color.DarkBlue
    Cursor = Cursor.Hand
    

    Now it behaves exactly like a web link.

    βœ… Repeat for Website2 and Website3

    Each card just uses its own column:

    Launch(ThisItem.WebSite2)
    Launch(ThisItem.WebSite3)
    

    Because the form is bound to the selected state, the URL automatically changes when a different state is selected.

    You don’t need to reference the gallery at all.

    ❌ Why your button always opened the same state

    You likely used something like:

    Launch(Gallery1.Selected.WebSite1)
    

    That works only if:

    • the gallery selection changes first

    • the form refreshes afterward

    Forms already track the selected record internally, so using ThisItem is the correct and reliable approach.

    βœ… Final working setup

    Gallery

    Items = ExcelTable
    

    Form

    Item = Gallery1.Selected
    

    Website DataCardValue

    Text     = ThisItem.WebSite1
    OnSelect = Launch(ThisItem.WebSite1)
    

    Repeat for each website column.

    βœ… Result

    When the user selects:

    Alabama

    The form shows:

    https://example1.com
    https://example2.com
    https://example3.com
    

    Clicking any link:

    • opens a new browser tab

    • launches the correct website

    • changes automatically when a different state is selected

    🔹 Important note

    If the Excel cell contains:

    example.com
    

    It must be:

    https://example.com
    

    or Launch will not work.

    βœ… Summary

    • Excel URLs are treated as plain text

    • Power Apps does not auto-create hyperlinks

    • Use Launch() on the DataCardValue

    • Use ThisItem.ColumnName

    • No buttons required

    • Works perfectly inside forms

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard