Forums

On submit code not executing

twhite 17 Jan, 2010
Hi,
Thanks for a wonderful components.

Not sure this is a bug:

I am running ChronoForms_V3.1_RC5.5 and noticed that the code I have entered under the "On submit before sending email" in the "forms code" tab will not run unless I have "email the results" set to "Yes" under the general tab.

I do not have any emails set up, and I do not really want to email either.

I could always put the on-submit code under the "extra code" but the form url already has task=send so would not know how to get the "extra code" box to run, like, where to put the task=extra, as the URL is automatically generated.


thanks,

Tom
GreyHead 17 Jan, 2010
Hi Tom,

It's a 'feature' albeit an irritating one, left over from the early versions of ChronoForms when that box was only used to pre-process data for the emails.

The OnSubmit Before box code; the DB Connection (if set to 'Before Emails'); and possibly some Plugins (if set to Before Emails) will not run unless 'Send Emails' is set to yes on the General Tab. You do not need to have any Emails setup or enabled though.

Bob
twhite 18 Jan, 2010
Thanks!!!
This topic is locked and no more replies can be posted.