Thank you everybody for this good job Chronoforms.
I am trying to connect a form that collect some personal data, with a sale virtual terminal. It is to pay a inscription in a activity in my school.
The form get some fields, and when finished and submit, if in one of the fiels the value "credit car" is chosen i have to redirect a data to another form (action to tha bank page) with several hidden fields. Of course i have to save the data of the form.
I dont really what to do.
I had thought in include this php code with the "if" and the implicit form, in the box "on submit: before sending email" ... but this box seems not to execute nothing. Actually i put only a simple text like
<?php echo "hola"; ?> or <p>hello></p>, and it doesnt appear.
¿how i can use this box to show messages or to execute php code?
¿do you think my idea is good?
My english is not good but I wish you understand.
Thank you very much
I am trying to connect a form that collect some personal data, with a sale virtual terminal. It is to pay a inscription in a activity in my school.
The form get some fields, and when finished and submit, if in one of the fiels the value "credit car" is chosen i have to redirect a data to another form (action to tha bank page) with several hidden fields. Of course i have to save the data of the form.
I dont really what to do.
I had thought in include this php code with the "if" and the implicit form, in the box "on submit: before sending email" ... but this box seems not to execute nothing. Actually i put only a simple text like
<?php echo "hola"; ?> or <p>hello></p>, and it doesnt appear.
¿how i can use this box to show messages or to execute php code?
¿do you think my idea is good?
My english is not good but I wish you understand.
Thank you very much
Hi jaem15,
The OnSubmit Before Email code is only executed if 'Send Emails' is set to 'Yes' on the Form General Tab. This is just an odd result of the history of ChronoForms. You can add PHP in there.
If you want to redirect then you can set the CronoForms Redirect URL so that the redirection happens after the form data is processed.
Bob
The OnSubmit Before Email code is only executed if 'Send Emails' is set to 'Yes' on the Form General Tab. This is just an odd result of the history of ChronoForms. You can add PHP in there.
If you want to redirect then you can set the CronoForms Redirect URL so that the redirection happens after the form data is processed.
Bob
Ah, ok, thank you very much. In my testing form "send mails" was set to "no". Now i can see the testing message echoed.
So, ¿which is the difference between code in "before box" and "after box"?.
If i have the send mails activates, both execute code inside.¿isn`t it?
¿Could i, for instance, abort sending email o saving data with appropiate code in some of these boxes?
Thanks a lot.
So, ¿which is the difference between code in "before box" and "after box"?.
If i have the send mails activates, both execute code inside.¿isn`t it?
¿Could i, for instance, abort sending email o saving data with appropiate code in some of these boxes?
Thanks a lot.
Hi jaem15 ,
One runs before the email is sent, the other runs after the email is sent. You can adjust the sequence a little with the 'Run Order' tab.
You can stop some processing if you know what you are doing - usually by executing a redirect - but it's not very clean in this version of ChronoForms.
Bob
One runs before the email is sent, the other runs after the email is sent. You can adjust the sequence a little with the 'Run Order' tab.
You can stop some processing if you know what you are doing - usually by executing a redirect - but it's not very clean in this version of ChronoForms.
Bob
This topic is locked and no more replies can be posted.