• Hello Community,
    I use ACF to deposit a PDF on various event pages. Now I would like to create a form in which the visitor can store his or her email address and then receive a message with the link to this file. Or maybe another possibility, the PDF is directly in the mail-
    Do you know a possibility?

    The form appears on all event pages of “The Events Calendar” and each event has a different PDF, which is why the email content would have to be generated dynamically.
    Anyone have an idea?

    Many greetings, Nico

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Nico

    (@nico87)

    Realized a cumbersome implementation. It works, but maybe you have a better idea.

    I had the link written in a hidden input and had it written into the content of the email.

    Ciao @nico87,
    do you need to attach or link the file? to attach the file take a look at this

    to add / remove a pdf dynamically to a contact form you could use this.
    then you will pass to the shortcode the argument [contact-form-7 id=”2921″ attachment=”party1.pdf”], and in page 2 [contact-form-7 id=”2921″ attachment=”party2.pdf”]

    OR you can access to user input data if you need to change the attached pdf according to what the user chooses.

    or a combination these two, of course! hope that helps!

    Thread Starter Nico

    (@nico87)

    Hey Erik,

    Both ways would be perfectly fine. The advantage of a link is the small file size.

    Thank you for this opportunity, did not know that you can attach attachments to the forms in this way.

    In my case, I am handing the website over to my client without any programming knowledge and I want to make it as easy as possible for him.

    With my current solution, a PDF file is integrated into every single event (TEC) via ACF. A modal can be used to request the PDF via email. Immediately after entering the e-mail (in the modal dialog), CF7 generates the e-mail with the variable link.

    So I only had to create one CF7 form and with acf and some jquery the link to the file is written in a hidden field.

    • This reply was modified 3 years, 5 months ago by Nico.
    • This reply was modified 3 years, 5 months ago by Nico.

    Hey Nico,

    Can you help me out?
    I have a client which uses ACF and for every post there’s a different PDF brochure, when a customer fills out the form the pdf link will be e-mailed to them automatically, this worked fine for years.

    But now it suddenly stopped working and the customers get the pdf ID in their e-mail and not the pdf link, what was your code to get this working?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Dynamic page content in email’ is closed to new replies.