Page 1 of 1

Close window with File Upload in javascript

Posted: Fri Jun 27, 2014 8:25 am
by infgge00
I have a window with a file upload inside. I have a cancel button, that puts on an indicator and closes the window. Well, If File Upload shows any validation error, I can´t press the button and close the window because File Upload is showing the validation error again and again.

It´s possible to determine witch buttons causes validation and witch don´t?

Thanks!!

Re: Close window with File Upload in javascript

Posted: Fri Jun 27, 2014 3:55 pm
by negley
Each button element has a property "bypass validation". If set to True, it will submit the form regardless if a error exists or not. I usually always add these to my exit and back buttons.

http://www.profoundlogic.com/docs/displ ... Control%29

Re: Close window with File Upload in javascript

Posted: Mon Jun 30, 2014 4:49 am
by infgge00
It works perfectly. Thanks!!