Buy Now
Sign in

I receive mails with all fields empty

WoodyF4u , October 20 2017
WoodyF4u
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?
Best regards,
Wouter
The Netherlands
R
r.phillips
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
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
WoodyF4u
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.
Attachments
chronoforms-server-validation-1.png
chronoforms-server-validation-1.png
(37.39 KiB)
256 Downloads/Views
chronoforms-server-validation-2.png
chronoforms-server-validation-2.png
(25.22 KiB)
349 Downloads/Views
Best regards,
Wouter
The Netherlands
GreyHead
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
WoodyF4u
Thanks Bob,
That solved my issue.

Now I have to wait and see if the empty emails are history
Best regards,
Wouter
The Netherlands
G
graftedin
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?
admin
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
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
P
pmosca
I have V6 and I still get blank submissions!
admin
Hi pmosca,
What do you have under the Setup > submit section ?
Best regards
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
P
pmosca
Submit-Section.jpg
Attachments
Submit-Section.jpg
Submit-Section.jpg
(73.67 KiB)
131 Downloads/Views
Submit-Section.jpg
Submit-Section.jpg
(73.67 KiB)
202 Downloads/Views
admin
The "Validate fields" should be the first action under the "submit" event.
Best regards
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
H
herlex
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....Screenshot_1.png
Attachments
Screenshot_1.png
Screenshot_1.png
(38.5 KiB)
169 Downloads/Views
admin
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
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
H
herlex
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?
admin
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
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
H
herlex
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
admin
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
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!