# Send form to ACF-field \[RESOLVED\]

**URL:** <https://community.gravityforms.com/t/send-form-to-acf-field-resolved/15929>\
**Category:** Get Help\
**Tags:** elementor, acf\
**Created:** [September 26, 2023, 7:54am UTC](https://community.gravityforms.com/t/send-form-to-acf-field-resolved/15929 "2023-09-26T07:54:44Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![user63d14f48870f5076](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/user63d14f48870f5076/32/13719_2.png) [@user63d14f48870f5076](https://community.gravityforms.com/u/user63d14f48870f5076)\
**Post date:** [September 26, 2023, 7:54am UTC](https://community.gravityforms.com/t/send-form-to-acf-field-resolved/15929/1 "2023-09-26T07:54:44Z")

</div>

Hi everyone,

I’m using Wordpress, Elementor, Gravity Forms and Advanced Custom Fields (ACF) for a website collecting cycling cafes in NL and BE: [www.wielercafes.nl](https://www.www.wielercafes.nl).

On the page of every singular cycling cafe there is a simple contact form. I want this to be send to the emailadres of that particular cycling cafe. This emailadres is given using ACF at the backend. For now the contactforms are made with Elementor itself.

Is it possible to let the form send to the emailadres that is given to the particular cycling cafe?

Hopefully you can help me out.

Regards,  
Ruben

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [September 26, 2023, 9:05am UTC](https://community.gravityforms.com/t/send-form-to-acf-field-resolved/15929/2 "2023-09-26T09:05:38Z")

</div>

We can help if you use Gravity Forms, not Elementor forms. Are you going to switch?

---

<div class="post-metadata">

**Author:** ![user63d14f48870f5076](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/user63d14f48870f5076/32/13719_2.png) [@user63d14f48870f5076](https://community.gravityforms.com/u/user63d14f48870f5076)\
**Post date:** [September 26, 2023, 2:26pm UTC](https://community.gravityforms.com/t/send-form-to-acf-field-resolved/15929/3 "2023-09-26T14:26:12Z")

</div>

That’s what I meant to say: I used Elementor Forms before.  
Now I’m using Gravity Forms.  
Some forms still need to be transformed.

---

<div class="post-metadata">

**Author:** ![jimtrue](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/jimtrue/32/1405_2.png) [@jimtrue](https://community.gravityforms.com/u/jimtrue)\
**Post date:** [September 27, 2023, 6:53pm UTC](https://community.gravityforms.com/t/send-form-to-acf-field-resolved/15929/4 "2023-09-27T18:53:36Z")

</div>

Hi Ruben,

If you are using Gravity Forms, you can pull that email address if it’s stored in a custom field on the post you’re displaying the form.

You can use the {custom\_field} merge tag to populate a custom field from the post:

> **[Custom Field Merge Tags](https://docs.gravityforms.com/custom-field-merge-tags/)**
>
> custom-field-merge-tags: Use custom field merge tags in Gravity Forms for dynamic form content. Learn more today!

As an example, if you’re on the post for the Cycling Cafe and the email address is stored in a custom field called cycle\_email, you could call that field with {custom\_field:cycle\_email} and it will pull that from the post the form is embedded on.

You can use that merge tag to set the default value of the email field on your form and hide it using Visibility: Hidden.

---

<div class="post-metadata">

**Author:** ![user63d14f48870f5076](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/user63d14f48870f5076/32/13719_2.png) [@user63d14f48870f5076](https://community.gravityforms.com/u/user63d14f48870f5076)\
**Post date:** [September 28, 2023, 2:07pm UTC](https://community.gravityforms.com/t/send-form-to-acf-field-resolved/15929/5 "2023-09-28T14:07:51Z")

</div>

> [@jimtrue](#):
>
> {custom\_field:cycle\_email}

Thanks for your help Jim.

I tried a few things but still did not get this work.

The old form was using [field id=“emailadres\_wielercafe”], but this is not working for Gravity Forms.

How do I find the exact name of the custom (ACF-)field (e-mailadres of the cycling cafe) for Gravity Forms?

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [September 28, 2023, 3:50pm UTC](https://community.gravityforms.com/t/send-form-to-acf-field-resolved/15929/6 "2023-09-28T15:50:25Z")

</div>

You can check the wp\_postmeta table to see what the meta key name is. Based on the shortcode you shared, it might be `emailadres_wielercafe`. Try this merge tag (with curly braces):

```auto
{custom_field:emailadres_wielercafe}

```

---

<div class="post-metadata">

**Author:** ![user63d14f48870f5076](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/user63d14f48870f5076/32/13719_2.png) [@user63d14f48870f5076](https://community.gravityforms.com/u/user63d14f48870f5076)\
**Post date:** [September 30, 2023, 6:53pm UTC](https://community.gravityforms.com/t/send-form-to-acf-field-resolved/15929/7 "2023-09-30T18:53:32Z")

</div>

> [@chrishajer](#):
>
> wp\_postmeta table

Where do I find this ‘wp\_postmeta table’?

The code

```auto
{custom_field:emailadres_wielercafe}

```

did not work.

---

<div class="post-metadata">

**Author:** ![jimtrue](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/jimtrue/32/1405_2.png) [@jimtrue](https://community.gravityforms.com/u/jimtrue)\
**Post date:** [October 3, 2023, 3:21pm UTC](https://community.gravityforms.com/t/send-form-to-acf-field-resolved/15929/8 "2023-10-03T15:21:43Z")

</div>

The ACF Field configuration should give you the proper field name for wp\_postmeta.  
When you’re in ACF for the field, it’s the ‘field name’ field that contains that value:

 ![CleanShot 2023-10-03 at 11.20.29@2x](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/c/c069a1fb893c65a1e0fd8c8a32ae034230206d27.png)

---

<div class="post-metadata">

**Author:** ![user63d14f48870f5076](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/user63d14f48870f5076/32/13719_2.png) [@user63d14f48870f5076](https://community.gravityforms.com/u/user63d14f48870f5076)\
**Post date:** [October 13, 2023, 8:02am UTC](https://community.gravityforms.com/t/send-form-to-acf-field-resolved/15929/9 "2023-10-13T08:02:57Z")

</div>

Thanks, this did the job.

I looked up the ‘Field Name’ at ACF in the Wordpress Dashboard.  
I used {custom\_field: **FIELDNAME** } to send it to the correct mailadres.

Thanks a lot!  
Topic can be closed.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [October 18, 2023, 5:59pm UTC](https://community.gravityforms.com/t/send-form-to-acf-field-resolved/15929/10 "2023-10-18T17:59:09Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
