Forums

I receive mails with all fields empty

WoodyF4u 20 Oct, 2017
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?
r.phillips 20 Oct, 2017
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.
GreyHead 21 Oct, 2017
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
WoodyF4u 21 Oct, 2017
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.
GreyHead 22 Oct, 2017
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
WoodyF4u 22 Oct, 2017
Thanks Bob,
That solved my issue.

Now I have to wait and see if the empty emails are history 😉
graftedin 16 Nov, 2017
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?
Max_admin 21 Nov, 2017
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.
pmosca 14 Mar, 2018
I have V6 and I still get blank submissions!
Max_admin 15 Mar, 2018
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.
Max_admin 19 Mar, 2018
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.
herlex 20 Mar, 2018
Hello, i would like to participate in this thread...I also got problems with my Forms.
Scenario:
A user is filling out the form. The form will be saved in a database and the user will receive a message on the site and a mail-copy. The administrator will receive also a notification mail.
​
Problem:
Sometimes when a user enters data, it creates a complete blank database entry and nobody received a mail (Server logs show that no mail has been sent), but the user sees the message box on the side with the success message.
​
In the attachments you can find a screenshot of my submit function...I only send mails and message boxes, if data save was successfull....
Max_admin 22 Mar, 2018
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.
herlex 22 Mar, 2018
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?
Max_admin 24 Mar, 2018
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.
herlex 24 Mar, 2018
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
Max_admin 30 Mar, 2018
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.
This topic is locked and no more replies can be posted.