User and Single Entry View PDF

By: Michael Clark | Asked: 06/05/2023
ForumsCategory: How-toUser and Single Entry View PDF
Michael ClarkMichael Clark asked 11 months ago

I'm having trouble finding how to do a single entry view for a logged in user that lets them click to download a PDF of that view.

How can I make a View that lets a non-admin user of the site get a View that's limited to an entry associated with their ID (or better yet: their email address)?

1 Answers
Rob LeVineRob LeVine answered 11 months ago

I don't see any question specifically about PDFs so I'll address the issue of showing entries for the logged in user. If you want to display only the current user's entry, add a Filter that says 'UserID is equal to current_user' - as seen here.

Michael ClarkMichael C replied 11 months ago

Thanks, Rob. I can't get the frm-pdf to show a download link for the pdf in a view listing or the detail view. In the View editor, I place the frm-pdf shortcode with the parameters I want and it does not render the shortcode, just prints the full text of the shortcode: "[frm-pdf view="1234"..]"

Rob LeVineRob LeVine replied 11 months ago

If a shortcode is being displayed as the text of the shortcode, that means, specifically in your case that frm-pdf is not recognized. You're certain you have the PDF addon enabled? Even if your parameters were wrong, it should try to do _something_ with it. In my situation, I've used do_shortcode in PHP code and it works do_shortcode('[frm-pdf label="Invoice" filename="invoice" view="invoice-pdf" mode="view" target="_blank" public="1" id=' . $load->getInvoiceId() . ']');

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right