Skip to main content
Community site session details

Community site session details

Session Id : tXXpVDkkAXu31bpz7z/VEf
Power Apps - Building Power Apps
Unanswered

Can I use javascript in power apps html canvas

Like (0) ShareShare
ReportReport
Posted on 27 Sep 2022 14:21:05 by

Can I use java script in power apps html canvas.
If yes how can I implement can you please give me any example which will help me to add some scripting code.
Actually I want to add 'getElementById' in html script so that I can give styles to particular elements

Categories:
  • timl Profile Picture
    35,242 Super User 2025 Season 2 on 27 Sep 2022 at 14:36:44
    Re: Can I use javascript in power apps html canvas

    @vsd3105 

    No, it's not possible to include JavaScript in Power Apps canvas app.

    There is a post in the ideas forum that you can vote for here:
    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Power-Apps-Javascript-jquery/idi-p/10954

    It's possible to build PCF components that include JavaScript. However, it wouldn't be possible to call getElementById to reference a canvas control that's outside of the component.

    https://learn.microsoft.com/en-us/power-apps/developer/component-framework/overview

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2