Autoresponders get sent on form review as well as form submit
Permalink Browser Info Environment
Hi there - the title says it all really. I have a regular form with two autoresponders set up, they both send emails when the form is reviewed as well as when the form is submitted.
Many thanks for any light you can shed on this.
Kind regards
Daniel
Many thanks for any light you can shed on this.
Kind regards
Daniel
Type: | Discussion |
---|---|
Status: | In Progress |
I should have written that the autoresponder is sent on Review (which seems wrong to me) but is not sent again on Submit.
I noticed the same thing on my clients form.
I was trying to make a form which registers a user.
When the preview is submitted it already creates the user and sends the e-mail.
After trying to hit Submit it says that the e-mail address is already in use.
This makes using preview impossible with registration.
I was trying to make a form which registers a user.
When the preview is submitted it already creates the user and sends the e-mail.
After trying to hit Submit it says that the e-mail address is already in use.
This makes using preview impossible with registration.
Any thoughts from the developer on this? Thank you.
Form autoreply & autoresponder is not really built to be used with the review option to be honest with you.
I designed in more flexible means to handle this. If you go to the product page you can download the "proffers extend example" package and install it. You can then use the /models/events/ files to "hook" into Proforms specific sitewide events like "proforms_item_entry" (new form submission) to then take the $form object and pull any attributes you like and create custom email events based on information provided by the form.
For example:
I want to send emails out from a specific form, but ONLY when the user has checked a specific checkbox "confirm my submission" (just a dummy example here)
So install the extend package and within the onSubmit method of the /packages/proforms_extend_example/models/events/proforms_submit.php I add:
This is crude and quick example. You can/should use mail templates and pass mail vars. But this should give ideas.
As you can see, although a bit more complex, this way is surpassingly more flexible and powerful with how you approach application building using ProForms.
Hope this helps.
ChadStrat
I designed in more flexible means to handle this. If you go to the product page you can download the "proffers extend example" package and install it. You can then use the /models/events/ files to "hook" into Proforms specific sitewide events like "proforms_item_entry" (new form submission) to then take the $form object and pull any attributes you like and create custom email events based on information provided by the form.
For example:
I want to send emails out from a specific form, but ONLY when the user has checked a specific checkbox "confirm my submission" (just a dummy example here)
So install the extend package and within the onSubmit method of the /packages/proforms_extend_example/models/events/proforms_submit.php I add:
class ProformsFormSubmit { public function onSubmit($form){ $sendemail = $form->getAttribute('confirm_submission');//question handle if($sendemail > 0){ /* get the user, then get that users email */ $uID = $form->getAttribute('associated_user'); //the question handle of your associated user question $u = UserInfo::getByID($uID); $email = $u->getUserEmail(); $username = $u->getUserFirstName(). ' ' .$u->getUserLastName(); /* * OR * * $email = $form->getAttribute('email_question_handle'); */ $mh = Loader::helper('mail');
Viewing 15 lines of 32 lines. View entire code block.
This is crude and quick example. You can/should use mail templates and pass mail vars. But this should give ideas.
As you can see, although a bit more complex, this way is surpassingly more flexible and powerful with how you approach application building using ProForms.
Hope this helps.
ChadStrat
This is an auto responder to let you know that your support ticket has been forwarded to our entire support team at RadiantWeb!
Support tickets are reviewed Mondays thru Fridays 9am to 9pm & Saturdays 9am to 12pm EST.
A support team member will be following up with you as soon as possible.
Thank for supporting RadiantWeb Products!
RadiantWeb Support
http://goradiantweb.com