Close window with File Upload in javascript

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
infgge00
Profound User
Posts: 28
Joined: Mon May 05, 2014 4:15 am
First Name: Giovani
Last Name: Garcia Estevez
Company Name: SISA, S.L.
Contact:

Close window with File Upload in javascript

Post 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!!
negley
Profound User
Posts: 45
Joined: Tue Mar 11, 2014 2:50 pm
First Name: William
Last Name: Negley
Company Name: Utz Quality Foods
Contact:

Re: Close window with File Upload in javascript

Post 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
infgge00
Profound User
Posts: 28
Joined: Mon May 05, 2014 4:15 am
First Name: Giovani
Last Name: Garcia Estevez
Company Name: SISA, S.L.
Contact:

Re: Close window with File Upload in javascript

Post by infgge00 »

It works perfectly. Thanks!!
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests