Hello,
I have a problem with a form.
There is a file to upload with a size limit of 1 Mb.
In the "on fail" event I've selected Target event = OnLoad
and
quit next actions = yes
The error message about th size is diplayed.
BUT, in the url, the following is added : "&event=submit" , and so, if I change nothing (file is too big) but I press enter in the url box, the form is submitted empty.
Could you please help me ?
Best regards
wydo
I'm using Chrome...
I'm not familiar with the code you send međ
I'm working for an association (as a volunteer), difficult to find my way. Here is the link to the form, that is announced to go live on sep 1st :
http://www.concoursgrumiaux.be/index.php/fr/?option=com_chronoforms&chronoform=Inscription_EN
If you submit the form, with a pic file bigger than 1Mo, it gives an error message. But then, in the url form, the "&event=submit" is added at the end of the url, and if there you press enter in the url, it is submitting the form with all empty fields.
The problem is that this form is a registration to an international violin competition, and last year we received several empty forms, fearing that maybe we're missing some registrations in a very tight scheduleđ
I'll inscrease the max size of the file, but if I could find the bug here, I would feel much more comfortable....
Hi wydo,
The quick solution to this is to use serverside validation to block any forms where the required inputs are empty. I'm a bit puzzled though about why the inputs aren't being re-populated on an error. Normally they are (apart from file inputs which canât be).
Bob
Hello Greyhead, thank you for your response.
Actually, the fields are repopulated (except the dynamic select boxes). So on the screen, it seems it is populated, and if you press enter in the url bar, it is submitting the form, with empty fields. Feel free to make a try on the url form I sent earlier.
So, the behavior is the same in Firefox and chrome. The problem comes from the url that is rebuilt after the validation, why is it adding that http://www.concoursgrumiaux.be/index.php/fr/?option=com_chronoforms&chronoform=Inscription_EN&event=submit at the end ?
Because then, if you place the cursor in the url box and press enter, no more validation occurs, and form is sent empty....
Thank you for your help
Hi Wydo,
The &event=submit is added to the URL because that identifies the form event that handles the submission. You may be right that it should be removed on reload - I've had a quick look at the code but can't work out where the change would need to be.
I still believe that the simplest was to handle this is to add server-side validation.
Bob