Home Forums ACF PRO Connection with Contact Form 7.


Connection with Contact Form 7.

  • Hi.

    Firstly I want to thank you for such a great plugin.

    I have ACF Pro and I created my custom fields. One of them is ‘Reference number’ is visible on the post page. On the same page, I have a simple contact form. I need to put the reference number from the post to the form and sent. I tried many options but I just can’t. Maybe someone has any idea how to do it?

    this is my simple contact form:

    [text* your-name placeholder "Your name"]
    [email* your-email placeholder "Your e-mail"]
    [textarea your-message placeholder "Message"]
    [submit "Send"]

    this is the mail I want to send:

    From: [your-name] <[your-email]>
    Reference number: <?php the_field('reference_number'); ?>

    I know this is impossible to work, but I just wanted to show you what am I thinking about.

    this is the field I want to sent through the Contact Form 7:
    <?php the_field('reference_number'); ?>

    Many thanks,

  • What you need is something is CF7 that will let you add a dynamic value to the form, ACF will not do that. You might want to take a look at this

  • Thank you John! 🙂

    I tried many different similar plugins but this one really works 🙂

    I’ve added this in my Form tab:
    [dynamichidden referencenumber "acf field='reference_number'"]

    And this in my Mail tab:
    Ref: [referencenumber]

    Thanks a lot.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.