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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / want to embed a web ap...
Power Pages
Answered

want to embed a web application into PowerPages, but the HTML is changed without permission and it doesn't work properly.

(0) ShareShare
ReportReport
Posted on by

I want to embed a web application created with HTML, CSS, and Javascript into PowerPages, but for some reason the HTML content gets changed without permission and the app doesn't work properly.
How it is changed is that all id elements that exist in the HTML disappear (for example, <div id="aaa" style="margin: 10px 0;"></div> becomes <div style=" margin: 24px 0;"></div>)
Here I will explain how I incorporate web applications into PowerPages.
1. Create a site without using a template
2. Then go to PowerPagesManagement's WebPage, go to the page where you want to embed the application, and paste the HTML of the web application you created in Copy (HTML) (the contents here will be changed automatically).
3. Then add the js and css files used in the web application to the same page as web files. When adding a js file, delete the file extension and select the file (you cannot select it if it has an extension)
4.When I synchronize in DesignStudio and display the site in Preview, it doesn't work properly, and when I check it in DevTools, all the HTML id elements have disappeared. (The first attached image is the input HTML, the second is the HTML after it has been changed without permission)
Please let me know if you know anything about this. Thanks

Categories:
I have the same question (0)
  • Lucas001 Profile Picture
    2,434 Super User 2025 Season 2 on at

    Hi @Anonymous,

     

    that sounds really strange.

    When you add another id manually to one of your <div>s is that id than visible in the DevTools?

  • Community Power Platform Member Profile Picture
    on at

    Thank you for your question Lucas001 and I apologize for my reply being so late.

    I added a new id to one of the <div>s, but it was not displayed in DevTools

  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @Anonymous 

     

    To embed the Power Pages. There is a key ground rule. Adding it below. You can see why your ids are being replaced. 

     

    ragavanrajan_0-1698641143366.png

     

    Follow this official article 

     

    Note: Don't forget the site settings HTTP/Content-Security-Policy. 

     

    Hope it helps.
    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

     

  • Community Power Platform Member Profile Picture
    on at

    Sorry for the late reply again.
    I tried to find out how to do it, but it seems like my question was poorly written and I couldn't convey it properly.
    I've found a workaround, so I'll close this post.
    I'm really thankful to you.

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    I didn't solve this problem, but I found a workaround.
    It seems that syncing and previewing in Pages in the design studio was not a good idea.
    It works normally if you sync or preview with Styling, Data, or Set up.

    スクリーンショット 2023-11-02 102023.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

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
Fubar Profile Picture

Fubar 78 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 75

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard