Insert widget if condition

Hello,

I want to make the “Submit” button clickable if two fields in my form are equal.

I check the option “Insert fields if”, and I write the condition (field_pw_conf1 == field_pw1). But it does not work!!

thank you

I think you have to handle this with javascript client-side (add a html widget inside your form and write some piece of code).

The option “Insert fields if” in the studio works only when the engine generate the form, server-side.

Hi Rahimi,
“Insert widget if” is evaluated when the form is created so it not take in account what you are going to fill in the form. It is meant to insert the widget or not (it is not only a matter of visibility!!!) checking information that are already available when the form is created. Let me make an example about use case: “insert widget is the logged user belongs to IT group”.
In community version you cannot use contingency feature that is available in SP version and that make bonita forms more dynamic and that will solve your problem. In your case you can follow two ways:

  1. add some javascript custom code as suggested by joeteam03
  2. add a form validator to avoid form sumition if the two pwd are not equal

Ciao
Domenico

Thanks you joteam03 and Domenico,

it means that I can not manage the appearance of the “Submit” button putting any conditions on others widgets in the same form ? if i am using the community edition

So i have to write some javascipt code . Can you give me some exemple of code and where should i put it ?

Can you explain to me the diference between SP and community edition too?