• Resolved whereverpanda

    (@whereverpanda)


    Hi there,

    I need to grant access to form submissions to users other than admin.

    I have used the code as laid out in your documentation here: https://developer.ninjaforms.com/codex/submission-permissions/ which says to add the following:

    <?php
    
    // Must use all three filters for this to work properly. 
    add_filter( 'ninja_forms_admin_parent_menu_capabilities',   'nf_subs_capabilities' ); // Parent Menu
    add_filter( 'ninja_forms_admin_all_forms_capabilities',     'nf_subs_capabilities' ); // Forms Submenu
    add_filter( 'ninja_forms_admin_submissions_capabilities',   'nf_subs_capabilities' ); // Submissions Submenu
    
    function nf_subs_capabilities( $cap ) {
        return 'edit_posts'; // EDIT: User Capability
    }

    I add this into a snippet using the Code Snippets plugin, and it does in fact give access to submissions to roles with the assigned capability.

    However, when clicking on the ‘Download All Submissions’ button to export a CSV, it goes to an error page saying ‘Sorry, you are not allowed to access this page.’

    It does however allow me to select individual submissions and then select the bulk action ‘Export’. But I need to download all in one go with the ‘Download All Submissions’ button.

    Can anyone possibly help in allowing for the form submissions to be downloadable as well?

    I’m not a coder, so I really have no idea where to go from here.

    Thanks!

  • The topic ‘Permissions to access form submissions and Download CSV’ is closed to new replies.