• I created a page where user will be able to access (downlaord or view) a pdf of submitted forminator form from their dashboard. i used the shortcut for download and view on a separate page when a user is logged in, but it displays nothing.
    can you help pls

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Oleksandr

    (@oleksandrz)

    Hi,

    If you are using custom code and can iterate over user submissions it needs to add a “dataset” attribute so E2Pdf knows for which entry it must be generated PDF as follows:

    echo do_shortcode('[e2pdf-download id="1" dataset="'.$submission_id.'"]');
    
    echo do_shortcode('[e2pdf-view id="1" dataset="'.$submission_id.'"]');

    Where:

    • “1” must be replaced with your E2Pdf Template ID.
    • To $submission_id it must be assigned Forminator Submission ID (Entry ID) depending on your code.
    Thread Starter Abdulrahman

    (@damale)

    Thank you for the quick respond.

    Plugin Author Oleksandr

    (@oleksandrz)

    You mentioned that:

    I created a page where user will be able to access (downlaord or view) a pdf of submitted forminator form from their dashboard.

    Is it just empty page? or you made some connection to Forminator Entries submitted by users?

    If empty page:

    You can try to create your own shortcode that will get user submissions by logged-in user, iterate over it, and generate PDF download links via PHP. Unfortunately, it requires PHP knowledge as Forminator doesn’t have default functionality to output User submissions on the front-end and we do not have any code snippets ready for this to share.

    If you do not have enough knowledge – it needs to hire a PHP developer or you can contact us for paid support request: https://e2pdf.com/support/contact

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom code to add a view or download shortcut for user on frontend dashboard’ is closed to new replies.