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
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
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2