SimpleButton

NEXT Button - adding OnClick causes a 500 (Internal Server Error) response

Hi there,

I have a process Human Task with two forms. Form1 has a HTML Widget which I want to pass to the second screen and also save to a Bonita variable.

I'm using this post as reference: http://community.bonitasoft.com//answers/where-use-javascript-html-widget#comment-38851

In line with the refPost I have a SimpleButton to save the data to the Bonita variable using REST, and this works with no problem. The code is very simple

SimpleButton - How to use it?

Hi there,

according to Bonita 5.X documentation:

Use the simple button on a form to call a Java script.

By doing this...

Click on the Details panel > General tab > Options pane and enter the Java script in the HTML attributes field.

Unfortunately Bonita 6.X documentation doesn't make any reference to this widget...so I use 5.X

First question...

is "Java Script" (as written) Java code or JavaScript (one word), I'm assuming the latter as I believe you can also use jQuery on the button...

Notifications