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

1
0
-1

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

Comments

Submitted by Danny Medrano on Mon, 03/24/2014 - 22:23

By the way I am using BOS 5.9.1

1 answer

1
+1
-1

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

Comments

Submitted by Danny Medrano on Tue, 04/08/2014 - 23:22

Please, do you have an example or anything?

I am trying to implement your idea with no succeed.

Thanks

Submitted by asommariva on Thu, 09/25/2014 - 20:23

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)

Submitted by asommariva on Thu, 09/25/2014 - 20:38

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)

2) Use 'setInterval' and 'clearInterval' to do it repeatedly until you get the answer from the server.

Notifications