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 / SharePoint Links not w...
Power Apps
Unanswered

SharePoint Links not working in HTML Text control

(0) ShareShare
ReportReport
Posted on by 95

i have multiple links in a multiple lines of text field. these links point to different areas in SharePoint. But every time i click on the link through a html text control it navigates to a different link stripping off the site address and replacing it with "https://content.powerapps.com/sites" Anyone know a workaround to get these links to work?

Categories:
I have the same question (0)
  • KrishnaV Profile Picture
    5,023 on at

    Hi @Gottijay1999 ,

     

    Assign the value to a label and see what is coming with the multiline filed value and ensure that the href is pointing correctly. If possible please share with me a screenshot of the text coming on the label to help you better.

     

    Note:  Multiline filed in SharePoint must work best with HTML control.


    I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

    Regards,
    Krishna
    If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

  • Gottijay1999 Profile Picture
    95 on at

    @KrishnaV Apologies for the late response. Please find the html value below. i am using a html control and external links work fine, the problem is internal links don't because powerapps seems to truncate the href property of the link

    class="ExternalClassB607DF1C6FCC4AFCBF7ADA941479A4C7"><div style="font-family&#58;Calibri, Arial, Helvetica, sans-serif;font-size&#58;11pt;color&#58;rgb(0, 0, 0);"><a href="/sites/sitename/Lists/listname/AllItems.aspx">https&#58;//domainname.com/sites/sitename/Lists/listname/AllItems.aspx</a><br></div></div>

     

  • KrishnaV Profile Picture
    5,023 on at

    Hi @Gottijay1999 ,

     

    I see character in your string try to replace " with to avoid that. Could you please help me how you are getting that data on to PowerApps.


    I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

    Regards,
    Krishna
    If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

  • Gottijay1999 Profile Picture
    95 on at

    @KrishnaV tis html is generated by sharepoint, when a user pastes that link to the multiple line of text field. How do i replace the double quotes "" with a single quotes '? will that not break the html.

    users paste data directly on the sharepoint field and in this instance the content of that field if you look at it through the html control is just one url link. i think SharePoint wraps it in a class if the field is a rich text field

  • KrishnaV Profile Picture
    5,023 on at

    Hi @Gottijay1999 ,

     

    try this formula to replace the " with ':

    Concat(Split(LookUp(SampleList,ID=4,Address),Char(34)),Result,Char(39))

    Use this for HTMLText  formula field and then onSelect as Launch(Self.HtmlText)


    I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

    Regards,
    Krishna
    If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

  • natanz Profile Picture
    17 on at

    Has anyone solved this problem?  i am having the same issue.  i have a multiline text field in sharepoint, linked to an html text box in powerapps.  SPO is stripping the root of the address off the text that i enter into the multiline text field.  so i enter href="https://myCompany/sites/... and SPO oh so helpfully translates that to href="/&#58;x&#58;/sites/...  When powerapps gets its hands on that rootless address it does the best it can by adding https://us.create.powerapps.com/sites/..., but of course i don't have anything located at that address.  I tried to use (substitute, thisItem.multinelinetext, "/sites/", "https://myCompany/sites/")  but I can't get it to work.  has anyone found something that works?

  • KayFax Profile Picture
    99 on at

    sorry, issue resolved

     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

#2
11manish Profile Picture

11manish 193

#3
Valantis Profile Picture

Valantis 138

Last 30 days Overall leaderboard