The JavaScript alternative to the contingency feature
If you are using the Community Edition of Bonitasoft, you can't use contingencies. In that case, there are certain alternatives we can look at. We can use any scripting language, such as JavaScript or JQuery, to achieve what contingencies do. HTML widget is available in the palette section of the form design. In this widget, it is possible to write the JavaScript functions and code. Let us use JavaScript in HTML widget to conditionally display the Return Trip date in the BookTickets step.
In the BookTickets web form, let us drag a new HTML widget from the palette to the bottom of the form.
Note
HTML widget should be placed beneath all the other widgets for it to access the other widgets. If the other widgets are beneath HTML widget, then HTML widget will not be able to access the data or any attributes of these widgets.
Whenever we add a new widget in web forms, we give it a name. This name is used by Bonita to assign the same ID to the HTML...