Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
JimGAR
Regular Visitor

HTML Content for PowerBI: Linking

Hi. I have the HTML Content app displaying my HTML page in PowerBI. The issue I have is I created an anchor tag on one paragraph and a button (<a> and a separate <button> tag to test which worked). The navigation is only within the current HTML page in the visual. I'm not linking outside of the HTML page ... just within it.

 

The <a> nor the <button> works to navigation within the page. I thought the app did this and only had issues if linking to anything outside of the current HTML page.

 

Has anyone had the same issue?  What can I do to solve this issue?

 

Thank you for your advice and help.

 

Jim

3 REPLIES 3
ichavarria
Solution Specialist
Solution Specialist

Hi @JimGAR,

 

It's possible that the issue you're experiencing is related to how the HTML Content app is rendering your HTML page. Here are a few things you can try to solve this issue:

 

  1. Check your HTML code: Make sure that your <a> and <button> tags are properly formatted and that their href attributes are pointing to the correct location within the HTML page. You can also try adding an id attribute to the element you want to navigate to, and using that id in the href attribute.

  2. Use Javascript&colon; If the HTML Content app is not working as expected, you can try using JavaScript to handle the navigation within the HTML page. You can add a click event listener to your <a> or <button> element, and use JavaScript to navigate to the correct location within the HTML page.

 

I hope this helps! Let me know if you have any further questions.

 

Best regards, 

Isaac Chavarria

If this post helps, then please consider Accepting it as the solution and give Kudos to help the other members find it more quickly

Thanks, Issac. I'll try your suggestions.  Also, I do not see WebView2 on the visuals store. Is it another name?

ichavarria
Solution Specialist
Solution Specialist

Just corrected my reply! 

Thanks 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.