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 : wWAl7z5xdtt4ueILfuT3d2
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:
I have the same question (0)
  • timl Profile Picture
    35,805 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 686 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 433 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 266 Moderator

Last 30 days Overall leaderboard