Forums

How do I display a message and email only when the form has been successfully validated server side?

TheEdge7270 25 Mar, 2017
Hi,

The forms have been working fine, until we had the issue with blank values being submitted. Tracked this down to JS being disabled, so now I have added server side validation.

However for the life of me I cannot figure out how to prevent the thankyou message and emails being sent if there is a server side validation error.

How do I do this? I attach what my setup looks like.
Max_admin 25 Mar, 2017
Hi TheEdge,

Just add an "Event loop" action into the "fail" event of the server validation in order to stop the form from processing the next actions.

Best regards,
Max
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.

VPS & Email Hosting 20% discount
hostinger