I've customized a SharePoint List Forms using a PowerApps button.

Is it possible to run custom JavaScript code in these PowerApps forms?

I was not yet able to do it. It seems Microsoft does not want us to do it. But is there some kind of a workaround? For example, PowerApps has no printing capabilities and I'm trying to add an HTML button that would do just that.

enter image description here

enter image description here

I have also tried a button control, but it does not let me add my own JavaScript there:

enter image description here

Adding a script tag via the HTML control didn't work either :(

enter image description here

If you have any suggestions or insight - I would really appreciate it.


Powerapp is meant for power users. These power users have been long using tools like PowerPoint and excel. So the way here does seems limited to excel formulas, not custom code.

Spfx could be the way for devs, but yes it will require a lot more effort.


Custom code is not allowed in power apps.


By default, we cannot run custom JavaScript code in these PowerApps forms.

PowerApps is for no custom code.

The UI of PowerApps is intended to be a no-code surface for building apps without code.

There is a workaround for the issue.

You could customize the list form by InfoPath.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.