Forum

Thread tagged as: Suggestions, Forms

Unable to delete form responses...

I think it would be a good to be able to allow editors to delete form responses via a setting in the roles for the forms app.

Thanks, Monty

Monty Lewis

Monty Lewis 2 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you post your diagnostics report?

No, I was just chiming in on this thread where you said it's currently not an option for editors to delete form responses. They can delete the whole list, but not responses. I think it would be nice to allow editors to do that in some cases.

https://forum.grabaperch.com/forum/08-19-2017-unable-to-delete-form-responses

Drew McLellan

Drew McLellan 2638 points
Perch Support

I agree with that, which is why I added it in the 8 months between that post and now.

Normally if it wasn't showing up I'd be able to begin troubleshooting using the diagnostics. If you're not experiencing a problem I'll just close off the thread.

Oh sorry. I was experiencing the same issue and thought it was not implemented. I’ll send report

Perch Runway: 3.1.1
Production mode: Production (100)
Installed apps: content (3.1.1), assets (3.1.1), categories (3.1.1), perch_blog (5.6.1), perch_forms (1.11), perch_gallery (2.8.9), chirp_seo (1.2.1), perch_members (1.6.4), redfinch_logger (1.0.1), pipit_sharing (1.1.0)
DB driver: PDO
DB tables: perch2_backup_plans (1), perch2_backup_resources (5032), perch2_backup_runs (821), perch2_blog_authors (5), perch2_blog_comments (0), perch2_blog_index (3064), perch2_blog_posts (66), perch2_blog_posts_to_tags (56), perch2_blog_sections (8), perch2_blog_tags (63), perch2_blog_webmention_queue (0), perch2_blogs (1), perch2_categories (54), perch2_category_counts (5), perch2_category_sets (10), perch2_chirp_seo (47), perch2_chirp_seo_scores (134), perch2_collection_index (38642), perch2_collection_items (1722), perch2_collection_revisions (422), perch2_collections (8), perch2_content_index (8332), perch2_content_items (1382), perch2_content_locks (0), perch2_content_regions (131), perch2_events (84), perch2_events_categories (8), perch2_events_to_categories (88), perch2_forms (8), perch2_forms_responses (249), perch2_gallery_albums (1), perch2_gallery_image_versions (95), perch2_gallery_images (19), perch2_members (0), perch2_members_forms (0), perch2_members_member_tags (0), perch2_members_sessions (0), perch2_members_tags (0), perch2_menu_items (32), perch2_navigation (12), perch2_navigation_pages (51), perch2_page_routes (77), perch2_page_templates (152), perch2_pages (86), perch2_redfinch_logger_events (2767), perch2_resource_log (24166), perch2_resource_tags (37), perch2_resources (4983), perch2_resources_to_tags (102), perch2_scheduled_tasks (1466), perch2_settings (102), perch2_user_passwords (9), perch2_user_privileges (91), perch2_user_role_buckets (0), perch2_user_role_privileges (74), perch2_user_roles (11), perch2_users (11)
Users: 11
App runtimes:
<?php
    $apps_list = [ 
        'perch_blog',
        'perch_forms',
        'perch_gallery',
        'perch_members',
        'pipit_sharing'
    ];
?>
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins), publish_posts (1 mins), process_webmentions (1 mins)
Scheduled tasks for redfinch_logger: logger_events_gc (1440 mins)
Scheduled tasks for Backup: plan_1 (10 mins)
Editor plug-ins: ckeditor, markitup
H1: 74a31e475964be16b2a9846177ef718c
L1: 6e143fd328eb8f921cc47200e93ee271
F1: 3b606135b33e6a102526838f4152a807
headerColour: #103168
content_singlePageEdit: 1
helpURL:
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.1.2: done
latest_version:
headerLinkColour: #000000
logoPath: /perch/resources/web_logo_s1.gif
linkColour: #333333
editorMayDeleteRegions: 0
perch_events_editorMayManageCats: 0
perch_pages_folders: /stewardship/ /support_mcht/ /land_protection/ /about/
perch_pages_editorMayDeletePages: 0
perch_backup_admin_only: 1
perch_backup_mysqldump_path:
latestUpdate: 1.8.4
update_2.1.3: done
update_2.2: done
update_2.2.1: done
update_2.2.3: done
update_2.2.7: done
update_2.2.10: done
on_sale_version:
update_2.4: done
update_2.4.8: done
update_2.5: done
perch_gallery_update: 2.8.5
perch_events_update: 1.8
headerScheme: dark
perch_events_detail_url: /trips-events/{slug}
perch_gallery_bucket_mode: dynamic
perch_gallery_bucket: gallery_images
dashboard: 1
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 1
perch_gallery_basicUpload: 0
update_2.5.4: done
update_2.6: done
update_2.7.6: done
perch_blog_update: 5.6
perch_blog_post_url: /stories/{postSlug}
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
perch_blog_comment_notify: 0
update_2.7.10: done
update_2.8: done
update_2.8.2: done
update_2.8.4: done
update_2.8.10: done
update_runway_2.8.13: done
update_runway_2.8.15: done
perch_blog_site_name: Stories From the Coast
update_runway_2.8.18: done
update_runway_2.8.20: done
update_runway_2.8.27: done
update_runway_2.8.29: done
update_runway_2.8.32: done
update_runway_2.8.34: done
update_runway_3.0.1: done
siteOffline: 0
update_runway_3.0.3: done
update_runway_3.0.4: done
update_runway_3.0.8: done
keyboardShortcuts: 1
content_skip_region_list: 1
perch_blog_webmention_tx: 0
perch_blog_webmention_rx: 0
update_runway_3.0: done
update_runway_3.0.10: done
assets_restrict_buckets: 0
perch_members_login_page: /members/login.php?r={returnURL}
perch_shop_price_tax_mode: inc
perch_shop_trade_price_tax_mode: inc
perch_shop_product_url: /shop/products/{slug}
perch_shop_invoice_number_format: Invoice%d
perch_shop_update: 1.2.5
perch_shop_default_currency: 47
perch_shop_reporting_currency: 47
perch_members_update: 1.4
update_runway_3.0.11: done
update_runway_3.0.12: done
redfinch_logger_gc: 90
perch_shop_site_url: https://mcht.lewisarts.com
sidebar_back_link: 0
update_runway_3.0.13: done
update_runway_3.0.14: done
chirp_update: 1.2.1
chirp_seo_license_key: PNTU7-9KF39-5BIQT-PN9QM
jaygeorge_perch_algolia_sync_application_id: UYO5API1F9
jaygeorge_perch_algolia_sync_application_admin_api_key: 7b4fca4fe0fe7a82e8df0a81f6ac79e0
jaygeorge_perch_algolia_sync_application_collection_number: 1
siteURL: https://mcht.org
update_runway_3.1.1: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: mchtorg
PERCH_DB_SERVER: mysql.mcht.org
PERCH_DB_DATABASE: mcht2018db
PERCH_DB_PREFIX: perch2_
PERCH_SSL: 1
PERCH_SITE_BEHIND_LOGIN:
PERCH_SITEPATH: /home/mchtorg/deploy.mcht.org/
PERCH_PRODUCTION_MODE: 100
PERCH_EMAIL_METHOD: smtp
PERCH_EMAIL_HOST: smtp.postmarkapp.com
PERCH_EMAIL_AUTH: 1
PERCH_EMAIL_PORT: 2525
PERCH_EMAIL_USERNAME: 7fe6ff63-3928-4275-ad4b-5bcd90abb47f
PERCH_TZ: US/Eastern
PERCH_EMAIL_FROM: info@mcht.org
PERCH_EMAIL_FROM_NAME: Monty Lewis
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/mchtorg/deploy.mcht.org/perch
PERCH_CORE: /home/mchtorg/deploy.mcht.org/perch/core
PERCH_RESFILEPATH: /home/mchtorg/deploy.mcht.org/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_IMAGE_LIB: GD
PERCH_SCHEDULE_SECRET: pearl
PERCH_HTML5: 1
PERCH_CLEAN_RESOURCES:
PERCH_RWD: 1
PERCH_GMAPS_API_KEY: AIzaSyCexBglyLq0tHnUeQvfT9AxOQM1aloxZ4s
PERCH_RUNWAY: 1
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_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_ASSET_VERSION: 8255e4c4a367cfa3e2bd
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/mchtorg/deploy.mcht.org/perch/templates
PERCH_TEMPLATE_FILTERS:
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_XHTML_MARKUP:
PERCH_HTML_ENTITIES:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_DEFAULT_BUCKET: default
PERCH_TRANSLATION_ASSIST:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_PRIV_ASSIST:
PERCH_CUSTOM_EDITOR_CONFIGS:
PERCH_ENABLE_EXIF: 1
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: markdown
Hosting settings

PHP: 7.1.16
Zend: 3.1.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $
MySQL server: 5.6.34-log
Free disk space: 2.04 TB
Extensions: Core, date, libxml, pcre, sqlite3, filter, mbstring, SPL, PDO, Reflection, pdo_sqlite, hash, session, cgi-fcgi, bcmath, bz2, calendar, ctype, curl, dom, standard, fileinfo, ftp, gd, gettext, exif, iconv, imap, json, mcrypt, mysqlnd, openssl, pcntl, pdo_mysql, posix, pspell, mysqli, SimpleXML, soap, sockets, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib, imagick, memcached, Zend OPcache
GD: Yes
ImageMagick: Yes
PHP max upload size: 64M
PHP max form post size: 65M
PHP memory limit: 128M
Total max uploadable file size: 64M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
PATH: /bin:/usr/bin:/sbin:/usr/sbin
RAILS_ENV: production
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/?extended
QUERY_STRING: extended
REQUEST_METHOD: GET
SERVER_PROTOCOL: HTTP/1.1
GATEWAY_INTERFACE: CGI/1.1
REMOTE_PORT: 38241
SCRIPT_FILENAME: /home/mchtorg/deploy.mcht.org/perch/core/settings/diagnostics/index.php
SERVER_ADMIN: webmaster@mcht.org
DOCUMENT_ROOT: /home/mchtorg/deploy.mcht.org
REMOTE_ADDR: 71.233.175.185
SERVER_PORT: 443
SERVER_ADDR: 69.163.195.71
SERVER_NAME: mcht.org
SERVER_SOFTWARE: Apache
HTTP_ACCEPT_ENCODING: br, gzip, deflate
HTTP_REFERER: https://mcht.org/perch/core/settings/diagnostics/
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1 Safari/605.1.15
HTTP_COOKIE: PHPSESSID=2ff15f40588bc8464a6c4768730501a4; cmsa=1; _ga=GA1.2.109993260.1512656315; _gid=GA1.2.1877701055.1523970630; gs_u_GSN-910420-J=112b73c49417e73bceafa035173a3b50:25035:58060:1524063006539; gs_v_GSN-910420-J=
HTTP_CONNECTION: close
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_HOST: mcht.org
SSL_TLS_SNI: mcht.org
HTTPS: on
DH_USER: mchtorg
dsid: 34664898
SCRIPT_URI: https://mcht.org/perch/core/settings/diagnostics/
SCRIPT_URL: /perch/core/settings/diagnostics/
UNIQUE_ID: WtiLrkWjw0cAAF4PfMMAAAAK
FCGI_ROLE: RESPONDER
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1524140974.436
REQUEST_TIME: 1524140974
Drew McLellan

Drew McLellan 2638 points
Perch Support

This looks like a very old site - is it safe to say that Forms was installed at a much earlier version and then updated?

yes. I assume so. Took over development recently...

Drew McLellan

Drew McLellan 2638 points
Perch Support

That's probably the reason then. You should be able to turn privilege assist on and have Perch add the new privilege for you.

turn it on and leave it on?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Once the priv has been added you can switch it off. It just adds missing privs as they're requested.

ok.

But with PERCH_PRIV_ASSIST on, I see this in Roles > Forms >

Access forms

Configure forms

Delete forms

Export responses

Should I see something referencing Responses?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, that's right. Are you in development mode?

I don't think so. The diagnostic shows:

PERCH_DEVELOPMENT: 10 
PERCH_STAGING: 50 
PERCH_PRODUCTION: 100 

And config is set to: define('PERCH_PRODUCTION_MODE', PERCH_PRODUCTION);

Drew McLellan

Drew McLellan 2638 points
Perch Support

You need:

define('PERCH_PRODUCTION_MODE', PERCH_DEVELOPMENT);

ok. I put it into development mode and I still do not see any additional items in forms permissions on the roles screen. still

Access forms

Configure forms

Delete forms

Export responses

Perch Runway: 3.1.1
Production mode: Development (10)
Drew McLellan

Drew McLellan 2638 points
Perch Support

Is PERCH_PRIV_ASSIST still on?

Yes it is.