Hi,
I developped a smart form to upload a document on the server. Then, I browse through this file to fill the data fields.
If an error occured during filling data fields, the page is still validated and posted...
How can I avoid the page to be validated and posted?
Thanks
Page 1 / 1
Hi there,
It sounds like you have server side code that reads this file and populates certain K2 datafields, if I understand correctly?
I would suggest you do this by wrapping your code in a try.. catch block where you update the data fields inside the try block and redirect the browser to an error page in your catch block, or something like that depending on your scenario.
Hope that helps,
Gerhard
It sounds like you have server side code that reads this file and populates certain K2 datafields, if I understand correctly?
I would suggest you do this by wrapping your code in a try.. catch block where you update the data fields inside the try block and redirect the browser to an error page in your catch block, or something like that depending on your scenario.
Hope that helps,
Gerhard
Thanks for the response.
I already tested the try catch block but even if I throw the exception, the page seems to be validated...
I already tested the try catch block but even if I throw the exception, the page seems to be validated...
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.