How to introduce custom behaviour to widgets ?

Dear all,

Can someone post a standard way of adding a behavior after on a 'onclick' event related with e.g. a table ?
My goal is to automatically fill some input widget with the selected record data.

I am a bit lost on how to start. I have the version 7.4.1 and in past posts I see that one should use the HTML widget.
Is that available on this version ?


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

Custom javascript ondblclick on table row -> registration of selection to bonita engine

Hi Everybody,

I made a custom ondblclick on a table. When a double-click is done on the table row, the row must be selected and then the page needs to be submitted.

For now I have the following:

1: I put in the next-button a custom class named "submitButton" 2: on the table widget I put into the Options->Html attributes a onmouseover event:

onmouseover="$('tr', this).off('dblclick').dblclick(function(){ var selected = $('td', this).eq(0).text(); alert(selected); $(this).addClass('bonita_form_table_selected'); $('.submitButton').trigger( 'click' );});"