I'm using Chronoforms v5 for a multi page form.
At the first page I ask the visitor for the personal infiormation.
All fields are set as required.
At the next page they add some extra information and then the can click on the Send button.
Sinds a couple of months I receive emails with all fields are empty.
When I try it myself to submit the form it is not possible, cause the fieldsof the first page are all required.
It seemds a bot can break trough this first security and can 'hit' the submitbutton at the next page.
I have read about the Server validation.
So I have added that to the Setup tab in the On submit.
I added the fieldnames of all required fields of the first page in the Not Empty.
For test I have set one field at the first page to Not required but it is still part of the server validation.
When I test the form I see the error that some fields are empty, but it is possible to hit the Submit button at the next page.
What can I do to fix it?
This exact same thing is happening to me. I am receiving emails of a blank form even when all fields are required. I also cannot duplicate this "blank" form myself.
Looking for a solution.
Hi,
Adding ServerSide validation is the answer in both cases. To have the validation work you need to have an Event Loop action in the pink On Fail box - otherwise it does nothing useful.
Serverside validation will not prevent the form from submitting - it runs on the server after submission; only client-side validation can do that.
Bob
Thanks GreyHead for your quick reply.
As I wrote, I did add the Server Validation.
I did not wrote about the loop, but it was added to the form.
You can see what i have done in attachment 1
And I have added the fieldnames as you can see in attachement 2.
This is the form: https://nieuweakker.nl/proefabonnement.html?view=form
For test I have set the field Telefoonnummer as not required.
When I fill all the fields and leave the field Telefoonnummer empty, the next page will be viiible.
That is strange. I hoped the form should stop there with an error message about the empty field.
Hi Wouter,
ChronoForms runs the actions in the order they are in the event so you need the ServerSide validation to be *before* the HTML (render form) action - usually it will be just after any anti-spam Check action.
Bob
Thanks Bob,
That solved my issue.
Now I have to wait and see if the empty emails are history 😉
Validation for check boxes doesn't seem to work. Not a big deal and I really don't need server side validation. Will just having the server side validation turned on with out any fields being validated fix the empty fields in the email?
Hi grafetedin,
in v5 no, but in v6 there is a "Validate fields" action which does exactly that, it does auto server validation for any form fields configured with validation rules.
Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
I have V6 and I still get blank submissions!
Hi pmosca,
​
What do you have under the Setup > submit section ?
​
Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
The "Validate fields" should be the first action under the "submit" event.
​
Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi herlex,
​
Do you have the form inside an article and loaded using the plugin ? do you have the same problem when you test the form using the "View" link in the forms manager ?
​
Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi admin,
I am not able to reproduce the problem. For me all is working fine, but for some users (i cannot get more detailed info for which) the described scenario happens.
I loaded the form directly to a menu via "Form View"..
​
Is it possible to enable some debug logs maybe?
Hi herlex,
​
Please try to move the 2 email actions and the message AFTER the "Save data" and check if this problem will occur again or not!
​
Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Alright. I put the actions after the save data.
Is the onSubmit() breaking, when moving into an event loader?
​
So the procedure is:
​
if(save_data)
{
// Do nothing
}
else
{
// Eventload onLoad() and break onSubmit()
}
​
// This will never happen when Eventload onLoad got called?
Send mails/success messages
Hi herlex,
​
The actions are processed one after another from top to down unless an "Event loader" is met, the chain is broken.
​
So if you have some actions after the "Save data" and the save was successfull then they will be processed too.
​
Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.