Using custom javascript in deployment

Hi guys,

I’ve followed

How to add custom Javascript in your Bonita BPM Forms | Bonitasoft Community

http://community.bonitasoft.com/groups/usage-operation-5x/javascript-process

Add your own widgets to your forms, Example 1: Google Maps API | Bonitasoft Community

and many others that work fine on studio but do not work for me in deployment. I’m meant to understand that it was a bug that existed prior to version 6.3 but I’m using 6.5 but I still haven’t gotten it to work. What could be the problem?

Thank you for you time and help

Hi,

What we’ve ended with doing in my place is configuring the apache frontend to serve static files and then source the js dependencies in this file:

$ BONITA_HOME/client/tenants/1/work/theme/portal/BonitaForm.html

the cons is that you will need to edit this file again when you will upgrade / reinstall your server
the pro is that do not need to compile and deploy each time you want to change a single line in your JavaScript code

The big pro is that it just works.

This looks very promising, thank you! I very much appreciate it.