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

Type: Discussion
Status: In Progress
View Replies:
RadiantWeb replied on at Permalink Reply
Hi there,

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
dantheman replied on at Permalink Reply
I should have written that the autoresponder is sent on Review (which seems wrong to me) but is not sent again on Submit.
Hypocrite replied on at Permalink Reply
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.
dantheman replied on at Permalink Reply
Any thoughts from the developer on this? Thank you.
RadiantWeb replied on at Permalink Reply
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:

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');

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.

concrete5 Environment Information

# concrete5 Version

# concrete5 Packages
FlexSlider (2.0.3), Pro Forms (7.5.6).

# concrete5 Overrides
languages/sv_SE, languages/pt_PT, languages/he_IL, languages/es_MX, languages/nl_NL, languages/ar, languages/es_AR, languages/es_ES, languages/fi_FI, languages/da_DK, languages/sk_SK, languages/fa_IR, languages/ro_RO, languages/zh_CN, languages/zh_TW, languages/el_GR, languages/it_IT, languages/es_PE, languages/de_DE, languages/ja_JP, languages/vi_VN, languages/nb_NO, languages/cs_CZ, languages/sl_SI, languages/fr_FR, languages/tr_TR, languages/ru_RU, models/attribute, themes/baptist-student-hostel

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off

# Server Software
Apache/2.2.14 (Ubuntu)

# Server API

# PHP Version

# PHP Extensions
apache2handler, apc, bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, json, libxml, mbstring, mcrypt, memcache, mhash, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, Phar, posix, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, zip, zlib.

# PHP Settings
max_execution_time - 30
apc.max_file_size - 1M
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 200M
memcache.max_failover_attempts - 20
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 100000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:32.0) Gecko/20100101 Firefox/32.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.