thnks for your answer.
i have a "Formidable Pro Elite Package". But when i activate the "Attach PDF of entry to email" option, the attached pdf only shows the summary of all entries. Not the custom view i created.
dear victor, do you understand what i mean?
Did you try this hook? https://formidableforms.com/knowledgebase/frm_pdfs_email_attachment_args/
Hey Rob, thanks! I have two view-ids - for two different languages. How can i implement this in this hook?
View 902 for de, View 970 for en.
I'm not really sure because when you're in the PHP program, you likely only have access to the server language. You can try something like this, but I'm not sure it'll work https://www.geeksforgeeks.org/how-to-detect-browser-language-in-php/
is there a way to solve it with [get_current_language]? This is already implemented to the form to send language-specific confirmation emails
add_filter( 'frm_pdfs_email_attachment_args', 'add_view_to_attached_pdf', 10, 2 ); function add_view_to_attached_pdf( $pdf_args, $args ) { $pdf_args['view'] = 902 ; // ID of view. return $pdf_args; }I get the last three entries in one pdf as attachement. How can i reduce it to the current entry? thx, tom
In the example on the FF site, you'll see
$pdf_args['id'] = $args['entry']->id;
so i have to create a detail view page first, right?
Please login or Register to submit your answer