How to add JavaScript to existing button in Ribbon WorkBench. Open Ribbon workbench and Right click on Assign button from Account form and click on Customize Button. Add Enable rule and call Javascript function. Reference: https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/customize-commands-ribbon