insert if widget

1
0
-1

hello

i need to create conditional field in my form ...i have radio button ("approve","reject")..and select field with operator name which i need to display when manager select approve form radio button otherwise it should be hidden.

i use v6 community edition .

what is the groovy script for this ??

thank you for your help ..

1 answer

1
0
-1

I think what you're asking is

  • display form
  • manager clicks "approve"
  • then display the select field

There is no easy way directly in Bonita to do this. You need to add a small JavaScript to do it. Attach your JavaScript to the radio button and when the manager selects accept make the select field visible (it should be hidden by default in this case, (use a hidden field)).

Use the HTML widget to hold your javaScript code and place it at the bottom of the form to ensure all DOM objects are in place first.

Hope this helps, regards Seán

PS: Tutorial here

Notifications