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

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / PowerFX + HTML Trouble
Power Pages
Unanswered

PowerFX + HTML Trouble

(0) ShareShare
ReportReport
Posted on by 308

I'm trying to generate an HTML table dynamically using PowerFX inside Power Pages.

The formula builds valid HTML, but Power Pages renders it as plain text instead of displaying the table.

Here is an example of the formula:

fx="<table style='border-collapse:collapse;' border='1'><tr><th>Name</th><th>Surname</th></tr>" &
Concat(
    FirstN(Contacts, 3),
    "<tr><td>" & Name & "</td><td>" & Surname & "</td></tr>"
) &
"</table>"

Instead of showing the table, Power Pages prints the literal HTML code on the page.

Is there a reliable way to generate and render dynamic HTML using PowerFX in Power Pages, or is this currently not supported?

Thanks.

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    52,970 Super User 2025 Season 2 on at
    PowerFX + HTML Trouble
     
    That is correct behavior, right now it's not supported to essentially stream that generated HTML, at least not from PowerFX. 
     
    If it would be ok, can you just give a super small use case for what you are generating? I am just wondering if templates would work.
     
    You could also build a component
     
    Possibly the others have a specific example
     
     
  • Ismael_Novo Profile Picture
    308 on at
    PowerFX + HTML Trouble

    Thanks Michael. I’ve been waiting for years for the “PowerApps magic” to fully land in Power Pages. What I’m aiming for is a way to work 100% with low-code and leave JavaScript behind whenever possible. If Power Pages ever supports rendering raw HTML produced from PowerFX natively, it would unlock a completely unified workflow.

    For now I’m exploring templates and PCF components, but several people not move here until PowerFX-driven magic is comming.

    Thanks!

  • Michael E. Gernaey Profile Picture
    52,970 Super User 2025 Season 2 on at
    PowerFX + HTML Trouble
     
    Totally get that :-) I wish I could suggest a better option or more specifically how to do what you want in the way you want it, apologies I can't :-(

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 66

#2
Fubar Profile Picture

Fubar 45 Super User 2025 Season 2

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 31 Super User 2025 Season 2

Last 30 days Overall leaderboard