Forums

How validations work in CF7?

artsapiens 13 Dec, 2022
I cannot find anywhere in Actions anything about Validations.
I enabled it in Form Settings, but for example, I set File upload limit to 1Mb and trying to upload 2Mb. So, form just spinning some time and then throws exception (timeout). How to handle Validations like this? I'd prefer to show same form and message "file is too large" for example. That was easy in CF6, but in CF7 there is NO ACTION like Validation.. HOW??
artsapiens 13 Dec, 2022
I'm kinda sure that uploading 2Mb file on localhost won't take more than 30 seconds..

#bug probably?

This is what I get:

pgrnycomdir 13 Dec, 2022
I use validations on the individual fields. So I would imagine that if you have a field where you allow the user to upload, you would go to that specific field and put your size limits there.

Good luck,
Donna
artsapiens 13 Dec, 2022
@pgrnycomdir

This is exactly what I've done, but it seems like validations just throws exception, not actually validating (see screenshot above).
You need to login to be able to post a reply.