How can I show something similar to a modal panel to indicate the user that the form is being processing?

Hi,

Is there a way to show something similar a modal panel or a kind of gif that indicates to the user that the form is being processing when the user clicks on a submit button?

Or is there another thread that leads me to my goal?

Thanks

Hello

you can add a JS event on this button which will set the CSS property display of your "processing div" from hidden to block.

Nicolas T

By the way I am using BOS 5.9.1

Please, do you have an example or anything?

I am trying to implement your idea with no succeed.

Thanks

Hi all! The problem with this aproach is you can’t control the result of the submit event and, for example, close this dialog if your validation throws an error, or can you?

I’m trying to do something similar and I can’t find a solution yet.

Regards!

(I’m using BOS 5.10)

Hi again! This is the answer: http://community.bonitasoft.com/groups/usage-operation-5x/how-execute-javscript-after-form-validation-form-submit

Thanks to Ssabrewulf!!

In short steps:

  1. Check for validation messages:
if($('button').length&&!$('div.bonita_form_field_validation_message,div.bonita_form_mandatory:not(:contains("*"))').length)
  1. Use ‘setInterval’ and ‘clearInterval’ to do it repeatedly until you get the answer from the server.