Forum

Thread tagged as: Question, Addons

Form responses by email and stored

I have noticed that if I select to store form responses and then also try to select to email them I only seem to be able to use one or the other option. Is there no way I can do both?

Emma Davis

Emma Davis 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, both should be possible. What happens?

I select the checkbox to store form responses, then when I select the checkbox to email responses the checkbox for storing them un-checks (they seem to be working more like radio buttons). If I try and check the storage option again, the email response checkbox un-checks - and so on.

Drew McLellan

Drew McLellan 2638 points
Perch Support

That's not something I can reproduce, and not how it's intended to work.

Can you show me your diagnostics report?

Perch: 2.7.4
Production mode: Production (100)
Installed apps: content (2.7.4), assets (2.7.4), perch_forms (1.7), perch_shop_paypal (1.2.1)
DB driver: PDO
DB tables: perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_forms, perch2_forms_responses, perch2_gallery_albums, perch2_gallery_image_versions, perch2_gallery_images, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_log, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_shop_carts, perch2_shop_categories, perch2_shop_log, perch2_shop_orders, perch2_shop_product_option_values, perch2_shop_product_options, perch2_shop_product_options_old, perch2_shop_products, perch2_shop_products_to_categories, perch2_shop_products_to_options, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users
Users: 2
App runtimes:
<?php
    $apps_list = array(
        'content',
        'perch_forms',
        'perch_shop_paypal'
    );
Editor plug-ins: ckeditor, markitup, redactor
H1: 421aa90e079fa326b6494f812ad13e79
L1: 1bbb2bd2e394dc541c15253dbbd98e24
headerColour: #73b9dd
content_singlePageEdit: 1
helpURL:
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.5.4: done
latest_version: 2.8.8
on_sale_version: 2.8.13
headerScheme: dark
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 1
content_frontend_edit: 0
logoPath: /manage/resources/Transparent-Logo.png
siteURL: https://longfield.thewebbakery.co.uk
perch_gallery_update: 2.8.5
perch_gallery_bucket_mode: dynamic
perch_gallery_bucket: photos
perch_shop_paypal_email:
perch_gallery_basicUpload: 0
perch_shop_display_oos: 1
update_2.6: done
perch_shop_product_url: dog-agility-equipment/{productSlug}
update_2.6.3: done
update_2.6.6: done
update_2.7.4: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: cl51-longfield
PERCH_DB_SERVER: 217.199.187.63
PERCH_DB_DATABASE: cl51-longfield
PERCH_DB_PREFIX: perch2_
PERCH_TZ: Europe/London
PERCH_EMAIL_FROM: emma@thewebbakery.co.uk
PERCH_EMAIL_FROM_NAME: Emma Davis
PERCH_LOGINPATH: /manage
PERCH_PATH: /Users/emma/Dropbox/Sites/Longfield Agility Foundation/manage
PERCH_CORE: /Users/emma/Dropbox/Sites/Longfield Agility Foundation/manage/core
PERCH_RESFILEPATH: /Users/emma/Dropbox/Sites/Longfield Agility Foundation/manage/resources
PERCH_RESPATH: /manage/resources
PERCH_HTML5: 1
PERCH_RWD: 1
PERCH_RUNWAY:
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /Users/emma/Dropbox/Sites/Longfield Agility Foundation/manage/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
HOSTING SETTINGS

PHP: 5.6.2
Zend: 2.6.0
OS: Darwin
SAPI: apache2handler
Safe mode: not detected
MySQL client: 5.5.38
MySQL server: 5.5.35
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, SPL, iconv, intl, json, ldap, mbstring, mysql, mysqli, session, PDO, pdo_sqlite, standard, posix, Reflection, Phar, SimpleXML, soap, sockets, exif, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, apache2handler, imap, yaz, mcrypt, gettext, pgsql, pdo_pgsql, pdo_mysql
GD: Yes
ImageMagick: No
PHP max upload size: 32M
PHP max form post size: 32M
PHP memory limit: 128M
Total max uploadable file size: 32M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
HTTP_HOST: localhost:8888
HTTP_CONNECTION: keep-alive
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
HTTP_REFERER: https://localhost:8888/manage/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
HTTP_COOKIE: MixDebugSession=A3451917-6C63-4786-8142-BDCD0A3084EA; SQLiteManager_currentLangue=2; longfield_cart_cookie=1441645973-b5bff552000e00f2ac3203e1e0afe086; cmsa=1; PHPSESSID=63b42e6bf9324a96264fa4d2ac2d09e8
PATH: /usr/bin:/bin:/usr/sbin:/sbin
SERVER_SOFTWARE: Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_perl/2.0.8 Perl/v5.20.0
SERVER_NAME: localhost
SERVER_ADDR: ::1
SERVER_PORT: 8888
REMOTE_ADDR: ::1
DOCUMENT_ROOT: /Users/emma/Dropbox/Sites/Longfield Agility Foundation
SERVER_ADMIN: you@example.com
SCRIPT_FILENAME: /Users/emma/Dropbox/Sites/Longfield Agility Foundation/manage/core/settings/diagnostics/index.php
REMOTE_PORT: 62843
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /manage/core/settings/diagnostics/?extended
SCRIPT_NAME: /manage/core/settings/diagnostics/index.php
PHP_SELF: /manage/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1442861010.48
REQUEST_TIME: 1442861010
argc: 1
Drew McLellan

Drew McLellan 2638 points
Perch Support

You're on quite old versions - probably the first thing to do is update Perch and your apps.

Sorry for the long delay in getting back to you. I have updated both Perch and the forms app but am still getting the same issue of not being able to select to both store and email form responses. Diagnostics below:

Perch: 2.8.13
Production mode: Production (100)
Installed apps: content (2.8.13), assets (2.8.13), categories (2.8.13), perch_forms (1.8.3), perch_shop_paypal (1.2.1)
DB driver: PDO
DB tables: perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_forms, perch2_forms_responses, perch2_gallery_albums, perch2_gallery_image_versions, perch2_gallery_images, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_log, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_shop_carts, perch2_shop_categories, perch2_shop_log, perch2_shop_orders, perch2_shop_product_option_values, perch2_shop_product_options, perch2_shop_product_options_old, perch2_shop_products, perch2_shop_products_to_categories, perch2_shop_products_to_options, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users
Users: 2
App runtimes:
<?php
    $apps_list = array(
        'content',
        'perch_forms',
        'perch_shop_paypal'
    );
Editor plug-ins: ckeditor, markitup, redactor
H1: 421aa90e079fa326b6494f812ad13e79
L1: 1bbb2bd2e394dc541c15253dbbd98e24
headerColour: #73b9dd
content_singlePageEdit: 1
helpURL:
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.5.4: done
latest_version: 2.8.8
on_sale_version: 2.8.13
headerScheme: dark
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 1
content_frontend_edit: 0
logoPath: /manage/resources/Transparent-Logo.png
siteURL: https://longfield.thewebbakery.co.uk
perch_gallery_update: 2.8.5
perch_gallery_bucket_mode: dynamic
perch_gallery_bucket: photos
perch_shop_paypal_email:
perch_gallery_basicUpload: 0
perch_shop_display_oos: 1
update_2.6: done
perch_shop_product_url: dog-agility-equipment/{productSlug}
update_2.6.3: done
update_2.6.6: done
update_2.7.4: done
update_2.8.13: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: cl51-longfield
PERCH_DB_SERVER: 217.199.187.63
PERCH_DB_DATABASE: cl51-longfield
PERCH_DB_PREFIX: perch2_
PERCH_TZ: Europe/London
PERCH_EMAIL_FROM: emma@thewebbakery.co.uk
PERCH_EMAIL_FROM_NAME: Emma Davis
PERCH_LOGINPATH: /manage
PERCH_PATH: /Users/emma/Dropbox/Sites/Longfield Agility Foundation v2.8.13/manage
PERCH_CORE: /Users/emma/Dropbox/Sites/Longfield Agility Foundation v2.8.13/manage/core
PERCH_RESFILEPATH: /Users/emma/Dropbox/Sites/Longfield Agility Foundation v2.8.13/manage/resources
PERCH_RESPATH: /manage/resources
PERCH_HTML5: 1
PERCH_RWD: 1
PERCH_RUNWAY:
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /Users/emma/Dropbox/Sites/Longfield Agility Foundation v2.8.13/manage/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20
HOSTING SETTINGS

PHP: 5.6.2
Zend: 2.6.0
OS: Darwin
SAPI: apache2handler
Safe mode: not detected
MySQL client: 5.5.38
MySQL server: 5.5.35
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, SPL, iconv, intl, json, ldap, mbstring, mysql, mysqli, session, PDO, pdo_sqlite, standard, posix, Reflection, Phar, SimpleXML, soap, sockets, exif, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, apache2handler, imap, yaz, mcrypt, gettext, pgsql, pdo_pgsql, pdo_mysql
GD: Yes
ImageMagick: No
PHP max upload size: 32M
PHP max form post size: 32M
PHP memory limit: 128M
Total max uploadable file size: 32M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
HTTP_HOST: localhost:8888
HTTP_CONNECTION: keep-alive
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
HTTP_REFERER: https://localhost:8888/manage/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
HTTP_COOKIE: MixDebugSession=A3451917-6C63-4786-8142-BDCD0A3084EA; SQLiteManager_currentLangue=2; longfield_cart_cookie=1441645973-b5bff552000e00f2ac3203e1e0afe086; cmsa=1; PHPSESSID=58df30e0b62824a67dec0097c15f0741
PATH: /usr/bin:/bin:/usr/sbin:/sbin
SERVER_SOFTWARE: Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8zg DAV/2 mod_perl/2.0.8 Perl/v5.20.0
SERVER_NAME: localhost
SERVER_ADDR: ::1
SERVER_PORT: 8888
REMOTE_ADDR: ::1
DOCUMENT_ROOT: /Users/emma/Dropbox/Sites/Longfield Agility Foundation v2.8.13
SERVER_ADMIN: you@example.com
SCRIPT_FILENAME: /Users/emma/Dropbox/Sites/Longfield Agility Foundation v2.8.13/manage/core/settings/diagnostics/index.php
REMOTE_PORT: 51283
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /manage/core/settings/diagnostics/?extended
SCRIPT_NAME: /manage/core/settings/diagnostics/index.php
PHP_SELF: /manage/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1443436083.53
REQUEST_TIME: 1443436083
argc: 1
Drew McLellan

Drew McLellan 2638 points
Perch Support

To be clear, these are the options you're using, right?

screenshot

Yes, that is what I am trying to use

Drew McLellan

Drew McLellan 2638 points
Perch Support

And you're saying you can't save it in the state as indicated in that screenshot? The boxes uncheck?

Yes, the checkboxes are functioning like radio buttons - as soon as I select one the other one deselects

Drew McLellan

Drew McLellan 2638 points
Perch Support

That's really puzzling. Have you tried in another browser? I'm wondering if it's something like a weird conflict with a browser extension.

No, sorry. Just tried in in Firefox (use Chrome normally) and still the same. I am not overly worried at the moment though as I have manually set the correct settings in the database which is working for the time being.

Hello Emma, by bizarre coincidence I was looking at a post of yours recently: https://forum.grabaperch.com/forum/10-21-2014-display-categories-as-radio-buttons because on most of my sites I want to limit clients to choosing only one category option (would be nice if this restriction could be built in to Perch). Recently this has caused issues by making checkboxes in Perch settings behave as radio buttons. My guess is you're having that problem.

I found tweaking to the following seemed to solve it.

<script>
$(document).ready(function() {

    // add fieldset and .fieldtype so that it doesn't effect other checkboxes on the page or in user roles, etc

    $('fieldset .fieldtype .check').on('click', function(){
        var checkbox_id = $(this).attr('id');
        $(this).closest('fieldset').find("input:checkbox.check").each(function(){
            var $this = $(this);    
            if($this.is(":checked") && $this.attr('id') !== checkbox_id){
                $this.attr('checked', false);
            }
        });
    });

});
</script>

ps. thanks for the original solution!

M.

Thank you Mike - I completely forgot I had done that which would explain my issue :) I have now removed the jQuery and the checkboxes are working as they should be.