# \#gfapi

**URL:** https://community.gravityforms.com/tag/gfapi/90.md

[Latest](https://community.gravityforms.com/latest.md) · [Categories](https://community.gravityforms.com/categories.md) · [Tags](https://community.gravityforms.com/tags.md)

---

## [Can we talk about adding fields?](https://community.gravityforms.com/t/can-we-talk-about-adding-fields/19847)

<div class="topic-metadata">

**Author:** [@kevin.frey](https://community.gravityforms.com/u/kevin.frey)\
**Replies:** 1\
**Last updated:** [November 12, 2025, 9:24pm UTC](https://community.gravityforms.com/t/can-we-talk-about-adding-fields/19847 "2025-11-12T21:24:05Z")

</div>

Hi– I’ve been working to add fields dynamically to my form and think it’s working, but I have questions. Just as a proof of concept, I’m adding a basic text field following the code on this page: How to Add a New Field…

---

## [GFAPI to move to Trash \[RESOLVED\]](https://community.gravityforms.com/t/gfapi-to-move-to-trash-resolved/18035)

<div class="topic-metadata">

**Author:** [@user5b37aa5b496635.7](https://community.gravityforms.com/u/user5b37aa5b496635.7)\
**Replies:** 2\
**Last updated:** [August 21, 2024, 4:43am UTC](https://community.gravityforms.com/t/gfapi-to-move-to-trash-resolved/18035 "2024-08-21T04:43:18Z")

</div>

Is there a way to programmatically move an entry to the trash via the GFAPI. Something like this: $result = GFAPI::update\_entry( $testentry,‘status’,‘trash’ ); I understand there is a delete\_entry, in my case I need t…

---

## [Show the names of people who signed up in the form in a landing page automatically](https://community.gravityforms.com/t/show-the-names-of-people-who-signed-up-in-the-form-in-a-landing-page-automatically/17906)

<div class="topic-metadata">

**Author:** [@cpminfotech](https://community.gravityforms.com/u/cpminfotech)\
**Replies:** 1\
**Last updated:** [August 9, 2024, 6:39pm UTC](https://community.gravityforms.com/t/show-the-names-of-people-who-signed-up-in-the-form-in-a-landing-page-automatically/17906 "2024-08-09T18:39:32Z")

</div>

We have a petition and we would like the names to show automatically in a landing page. Is there a code we can use to embed in a landing page that collates the names and displays it?

---

## [GFAPI nested conditions in get\_entries field\_filters](https://community.gravityforms.com/t/gfapi-nested-conditions-in-get-entries-field-filters/17338)

<div class="topic-metadata">

**Author:** [@user6152c55a630ac744](https://community.gravityforms.com/u/user6152c55a630ac744)\
**Replies:** 0\
**Last updated:** [April 24, 2024, 4:01am UTC](https://community.gravityforms.com/t/gfapi-nested-conditions-in-get-entries-field-filters/17338 "2024-04-24T04:01:31Z")

</div>

Hi, I’m trying to figure out how to make a nested GFAPI get\_entries call but I can’t find it in the documentation. Some has pointed to GF\_QUERY, but I also can’t find it in documentation. Basically, I’m trying to get e…

---

## [How to update two fields of existing entry via API/Zapier?](https://community.gravityforms.com/t/how-to-update-two-fields-of-existing-entry-via-api-zapier/17129)

<div class="topic-metadata">

**Author:** [@G7s3cx9FgVm3F8a4Q3cp](https://community.gravityforms.com/u/G7s3cx9FgVm3F8a4Q3cp)\
**Replies:** 3\
**Last updated:** [March 26, 2024, 8:24am UTC](https://community.gravityforms.com/t/how-to-update-two-fields-of-existing-entry-via-api-zapier/17129 "2024-03-26T08:24:04Z")

</div>

Hello, I’d like to update a few field of an existing entry via API/Zapier? Can I do this via Webhook in Zapier? I guess the first step is to define the form id and then lookup for the entry id and then the field id (i.…

---

## [Delay webhook until previous webhook server response](https://community.gravityforms.com/t/delay-webhook-until-previous-webhook-server-response/17027)

<div class="topic-metadata">

**Author:** [@user648c88d38f0fe544](https://community.gravityforms.com/u/user648c88d38f0fe544)\
**Replies:** 4\
**Last updated:** [March 14, 2024, 5:44pm UTC](https://community.gravityforms.com/t/delay-webhook-until-previous-webhook-server-response/17027 "2024-03-14T17:44:06Z")

</div>

Hello, I want to experiment with 2 webhooks. First webhook is sent when form A is submitted, then the second webhook is sent when form B is submitted. However, I want to test sending form B’s webhook not on form B submi…

---

## [Can't make post requests with repeater field. Gravityforms API](https://community.gravityforms.com/t/cant-make-post-requests-with-repeater-field-gravityforms-api/17032)

<div class="topic-metadata">

**Author:** [@user623c8747c231c101](https://community.gravityforms.com/u/user623c8747c231c101)\
**Replies:** 0\
**Last updated:** [March 9, 2024, 7:38pm UTC](https://community.gravityforms.com/t/cant-make-post-requests-with-repeater-field-gravityforms-api/17032 "2024-03-09T19:38:58Z")

</div>

Hey, I’m using WordPress as a headless CMS and I’m submitting forms using the Gravity Forms API. I have a form with a repeater field where people can invite up to 3 friends/families. My problem is that I just can’t see…

---

## [Can I use GFAPI inside a form to remove a previous form?](https://community.gravityforms.com/t/can-i-use-gfapi-inside-a-form-to-remove-a-previous-form/16920)

<div class="topic-metadata">

**Author:** [@houseofman](https://community.gravityforms.com/u/houseofman)\
**Replies:** 1\
**Last updated:** [February 27, 2024, 12:29am UTC](https://community.gravityforms.com/t/can-i-use-gfapi-inside-a-form-to-remove-a-previous-form/16920 "2024-02-27T00:29:36Z")

</div>

Hi there, Let me first say I know almost nothing about GFAPI but I believe it might help me obtain my objective to move a previous form entry to trash. Using some GF Wiz perks I am extracting some data from a previous …

---

## [Get Discount total number via API](https://community.gravityforms.com/t/get-discount-total-number-via-api/16768)

<div class="topic-metadata">

**Author:** [@user650aadf4b0231917](https://community.gravityforms.com/u/user650aadf4b0231917)\
**Replies:** 0\
**Last updated:** [February 1, 2024, 10:02pm UTC](https://community.gravityforms.com/t/get-discount-total-number-via-api/16768 "2024-02-01T22:02:14Z")

</div>

Hi there! I created a GET request using /wp-json/gf/v2/entries/12345 to get all kinds of data for my entry. I’m using the coupons add-on and I have a coupon total of 25 € in one entry. I can see the total, subtotal, tax…

---

## [Monthly submission count](https://community.gravityforms.com/t/monthly-submission-count/16614)

<div class="topic-metadata">

**Author:** [@piashlive14](https://community.gravityforms.com/u/piashlive14)\
**Replies:** 0\
**Last updated:** [January 11, 2024, 4:21pm UTC](https://community.gravityforms.com/t/monthly-submission-count/16614 "2024-01-11T16:21:57Z")

</div>

Hi i need monthly submission count for gravity form. Is there any way to do this? If anyone know please let me know thanks in advance.

---

## [GFAPI::update\_entry\_field creating new database entry rather than updating the existing entry](https://community.gravityforms.com/t/gfapi-update-entry-field-creating-new-database-entry-rather-than-updating-the-existing-entry/16600)

<div class="topic-metadata">

**Author:** [@user5e5f0c0318fd3879](https://community.gravityforms.com/u/user5e5f0c0318fd3879)\
**Replies:** 1\
**Last updated:** [January 10, 2024, 1:23am UTC](https://community.gravityforms.com/t/gfapi-update-entry-field-creating-new-database-entry-rather-than-updating-the-existing-entry/16600 "2024-01-10T01:23:43Z")

</div>

I am using GFAPI::update\_entry\_field to attempt to update a particular field in a form entry. If I simply check the form entry in the usual way I see the correctly updated information. However, a Gravity Kit filter is no…

---

## [When deleting an entry with GFAPI::delete\_entry, how to specify the form id?](https://community.gravityforms.com/t/when-deleting-an-entry-with-gfapi-delete-entry-how-to-specify-the-form-id/16522)

<div class="topic-metadata">

**Author:** [@user5b4f1b8702a506.9](https://community.gravityforms.com/u/user5b4f1b8702a506.9)\
**Replies:** 1\
**Last updated:** [December 24, 2023, 5:51am UTC](https://community.gravityforms.com/t/when-deleting-an-entry-with-gfapi-delete-entry-how-to-specify-the-form-id/16522 "2023-12-24T05:51:57Z")

</div>

When deleting an entry with GFAPI::delete\_entry, how to specify the form id? $result = GFAPI::delete\_entry( $entry\_id );

---

## [Export a gravityforms field using php code](https://community.gravityforms.com/t/export-a-gravityforms-field-using-php-code/16401)

<div class="topic-metadata">

**Author:** [@mdarabm](https://community.gravityforms.com/u/mdarabm)\
**Replies:** 0\
**Last updated:** [December 1, 2023, 5:22pm UTC](https://community.gravityforms.com/t/export-a-gravityforms-field-using-php-code/16401 "2023-12-01T17:22:31Z")

</div>

Hello, I have a registration gravityforms that I defined a country field in that. I would like to export country field in dokan report excel and I write below php code in dokan plugin, but unfortunately it returns same…

---

## [How to programmatically create a feed and pass it settings in Advanced Post Creation](https://community.gravityforms.com/t/how-to-programmatically-create-a-feed-and-pass-it-settings-in-advanced-post-creation/16135)

<div class="topic-metadata">

**Author:** [@gareth](https://community.gravityforms.com/u/gareth)\
**Replies:** 0\
**Last updated:** [October 27, 2023, 12:11pm UTC](https://community.gravityforms.com/t/how-to-programmatically-create-a-feed-and-pass-it-settings-in-advanced-post-creation/16135 "2023-10-27T12:11:01Z")

</div>

Hi, I’m wondering if there is a way to programmatically create a feed in APC and pass it settings? I’m struggling to find anything in the docs, but I might have missed something! Thanks!

---

## [Get the sum total from a field across all entries](https://community.gravityforms.com/t/get-the-sum-total-from-a-field-across-all-entries/16103)

<div class="topic-metadata">

**Author:** [@user64b9df5e85ccb026](https://community.gravityforms.com/u/user64b9df5e85ccb026)\
**Replies:** 1\
**Last updated:** [October 26, 2023, 3:17am UTC](https://community.gravityforms.com/t/get-the-sum-total-from-a-field-across-all-entries/16103 "2023-10-26T03:17:17Z")

</div>

Can it be done? I want to create a historical ‘balance’ based on previous form submissions, which means I’d like to add together all previous number field entries… \*Note, I don’t want to publish the number externally of…

---

## [File input via the API stopped working](https://community.gravityforms.com/t/file-input-via-the-api-stopped-working/15993)

<div class="topic-metadata">

**Author:** [@ballisticarts](https://community.gravityforms.com/u/ballisticarts)\
**Replies:** 0\
**Last updated:** [October 6, 2023, 8:48pm UTC](https://community.gravityforms.com/t/file-input-via-the-api-stopped-working/15993 "2023-10-06T20:48:06Z")

</div>

I have a JAMStack site that creates entries to GF via the API. The form has a bunch of different fields including two file fields that take one PDF file each. These have been working for month without issues. Yesterday …

---

## [Create GravityForms entry from custom form \[resolved\]](https://community.gravityforms.com/t/create-gravityforms-entry-from-custom-form-resolved/15662)

<div class="topic-metadata">

**Author:** [@x.stewie.grifffin.x](https://community.gravityforms.com/u/x.stewie.grifffin.x)\
**Replies:** 4\
**Last updated:** [October 3, 2023, 6:11pm UTC](https://community.gravityforms.com/t/create-gravityforms-entry-from-custom-form-resolved/15662 "2023-10-03T18:11:05Z")

</div>

I’m building a custom form and I need on submit to create an entry in gravityforms. Is this possible? On the submit button I’m using jQuery serializeArray() method to get all fields and their values. My problem is that I…

---

## [Formatting a list field for GFAPI entry-Pre\_submission](https://community.gravityforms.com/t/formatting-a-list-field-for-gfapi-entry-pre-submission/15899)

<div class="topic-metadata">

**Author:** [@dpope](https://community.gravityforms.com/u/dpope)\
**Replies:** 1\
**Last updated:** [September 21, 2023, 2:16pm UTC](https://community.gravityforms.com/t/formatting-a-list-field-for-gfapi-entry-pre-submission/15899 "2023-09-21T14:16:59Z")

</div>

Ahoy to the community, I have tried to do the utmost of digging through all of the documentation but my search has been in vain. Is there any built in functionality that is available to the plebs that would take the $\_…

---

## [Need Help with Updating Entries of a Form](https://community.gravityforms.com/t/need-help-with-updating-entries-of-a-form/15709)

<div class="topic-metadata">

**Author:** [@chikangatakudzwa](https://community.gravityforms.com/u/chikangatakudzwa)\
**Replies:** 3\
**Last updated:** [August 15, 2023, 1:17pm UTC](https://community.gravityforms.com/t/need-help-with-updating-entries-of-a-form/15709 "2023-08-15T13:17:07Z")

</div>

i have some specific logic I want to implement so I want to be able to update an entry column value based on entry id and change it from the frontend, so that if a user clicks on a button or makes an action, the value of…

---

## [Adding Attachment to Notification via PHP results in duplicate attachments](https://community.gravityforms.com/t/adding-attachment-to-notification-via-php-results-in-duplicate-attachments/15482)

<div class="topic-metadata">

**Author:** [@user5d1247a18ef66412](https://community.gravityforms.com/u/user5d1247a18ef66412)\
**Replies:** 0\
**Last updated:** [July 8, 2023, 4:02am UTC](https://community.gravityforms.com/t/adding-attachment-to-notification-via-php-results-in-duplicate-attachments/15482 "2023-07-08T04:02:14Z")

</div>

I have a form that sends a notification on a custom event. The form data is submitted via PHP and GFAPI, so there is no actual file upload, and I add the attachment (an ICS file) to the notification using the “gform\_noti…

---

## [Multi-file uploads via API?](https://community.gravityforms.com/t/multi-file-uploads-via-api/15458)

<div class="topic-metadata">

**Author:** [@westcountynet](https://community.gravityforms.com/u/westcountynet)\
**Replies:** 2\
**Last updated:** [July 6, 2023, 4:45pm UTC](https://community.gravityforms.com/t/multi-file-uploads-via-api/15458 "2023-07-06T16:45:53Z")

</div>

Hi there. We’re currently experiencing an issue trying to use the API to support a multi-file upload field, however stumbling across these threads: https://community.gravityforms.com/t/rest-api-multi-file-upload/11697 …

---

## [Can't access the API end points](https://community.gravityforms.com/t/cant-access-the-api-end-points/15026)

<div class="topic-metadata">

**Author:** [@user5f32bcc4b123b069](https://community.gravityforms.com/u/user5f32bcc4b123b069)\
**Replies:** 1\
**Last updated:** [April 26, 2023, 3:13pm UTC](https://community.gravityforms.com/t/cant-access-the-api-end-points/15026 "2023-04-26T15:13:36Z")

</div>

We need to access the entries to for testing purposes. When I go to /wp-json/gf/v2/ , I got this {"code":"rest\_no\_route","message":"No route was found matching the URL and request method.","data":{"status":404}}\`\`\` What…

---

## [Accessing likert scale(Survey) entries via api or sending via webhook exposes internal likert scale names instead of actual values \[RESOLVED\]](https://community.gravityforms.com/t/accessing-likert-scale-survey-entries-via-api-or-sending-via-webhook-exposes-internal-likert-scale-names-instead-of-actual-values-resolved/14916)

<div class="topic-metadata">

**Author:** [@jonathan1](https://community.gravityforms.com/u/jonathan1)\
**Replies:** 1\
**Last updated:** [April 13, 2023, 3:48pm UTC](https://community.gravityforms.com/t/accessing-likert-scale-survey-entries-via-api-or-sending-via-webhook-exposes-internal-likert-scale-names-instead-of-actual-values-resolved/14916 "2023-04-13T15:48:16Z")

</div>

Hello, our team uses GF (2.7.3), Survey (3.8) and Webhooks. We created a Likert scale and tried to send all fields via webhook. The target of the webhook receives this json: "6.1": "glikertrow25dad124:glikertcol6170d…

---

## [Empty trash full of entries](https://community.gravityforms.com/t/empty-trash-full-of-entries/14722)

<div class="topic-metadata">

**Author:** [@deefuz](https://community.gravityforms.com/u/deefuz)\
**Replies:** 2\
**Last updated:** [March 16, 2023, 10:32pm UTC](https://community.gravityforms.com/t/empty-trash-full-of-entries/14722 "2023-03-16T22:32:03Z")

</div>

Hello team. Is there a hook to automatically empty the trash after X days? The documentation says that the trahs isn’t emptied automatically, but maybe programatically?

---

## [Save confirmation name in entry when triggered as conditional logic \[RESOLVED\]](https://community.gravityforms.com/t/save-confirmation-name-in-entry-when-triggered-as-conditional-logic-resolved/14563)

<div class="topic-metadata">

**Author:** [@user632940628742e589](https://community.gravityforms.com/u/user632940628742e589)\
**Replies:** 4\
**Last updated:** [March 2, 2023, 1:40am UTC](https://community.gravityforms.com/t/save-confirmation-name-in-entry-when-triggered-as-conditional-logic-resolved/14563 "2023-03-02T01:40:24Z")

</div>

Hi, I have a form with 10 fields. I have different confirmations with conditional logic based on the value of the fields. Everything’s working well. I’d like to store in the database what confirmation has been trigge…

---

## [Custom view of form entries based on a form entry's field value](https://community.gravityforms.com/t/custom-view-of-form-entries-based-on-a-form-entrys-field-value/14225)

<div class="topic-metadata">

**Author:** [@gslonina7](https://community.gravityforms.com/u/gslonina7)\
**Replies:** 5\
**Last updated:** [February 4, 2023, 5:21pm UTC](https://community.gravityforms.com/t/custom-view-of-form-entries-based-on-a-form-entrys-field-value/14225 "2023-02-04T17:21:15Z")

</div>

For example: There is a business with multiple franchises. The website has a custom post type called Franchise and a user role called Franchisee. A Franchisee miami\_manager is assigned to Franchise miami. Rather than…

---

## [Searching entries with Regex](https://community.gravityforms.com/t/searching-entries-with-regex/14373)

<div class="topic-metadata">

**Author:** [@Operator95](https://community.gravityforms.com/u/Operator95)\
**Replies:** 1\
**Last updated:** [February 6, 2023, 1:10pm UTC](https://community.gravityforms.com/t/searching-entries-with-regex/14373 "2023-02-06T13:10:03Z")

</div>

Is there any way to get\_entries using a regular expression as search criteria? Something like: search\_criteria\['field\_filters'\]\[\] = array( 'key'=\> '1', 'operator'=\> 'contains', 'value'=\> /^\[0-9\]{6,6}$/g ); I am not su…

---

## [How to update a different entry after doing calculations](https://community.gravityforms.com/t/how-to-update-a-different-entry-after-doing-calculations/13907)

<div class="topic-metadata">

**Author:** [@lewisr1990](https://community.gravityforms.com/u/lewisr1990)\
**Replies:** 3\
**Last updated:** [November 30, 2022, 9:45pm UTC](https://community.gravityforms.com/t/how-to-update-a-different-entry-after-doing-calculations/13907 "2022-11-30T21:45:44Z")

</div>

Hello I have successfully extracted data from a form submission, calculated fields and added them back into the entry (i did this because my form was slow and needed to speed up the form). However, can anyone point me in…

---

## [Get field by custom name](https://community.gravityforms.com/t/get-field-by-custom-name/13954)

<div class="topic-metadata">

**Author:** [@user6284f9bfecdab790](https://community.gravityforms.com/u/user6284f9bfecdab790)\
**Replies:** 2\
**Last updated:** [November 29, 2022, 8:01am UTC](https://community.gravityforms.com/t/get-field-by-custom-name/13954 "2022-11-29T08:01:51Z")

</div>

I have a WordPress multisite setup that uses the same multi-step form. The form id and field id’s are different for every subsite. In every step of the form, I need to read the data from the previous step, and send it to…

---

## [Does this functionality exist? Extract Notifications Send to Email Addresses list](https://community.gravityforms.com/t/does-this-functionality-exist-extract-notifications-send-to-email-addresses-list/13839)

<div class="topic-metadata">

**Author:** [@tech1q](https://community.gravityforms.com/u/tech1q)\
**Replies:** 1\
**Last updated:** [November 9, 2022, 9:47pm UTC](https://community.gravityforms.com/t/does-this-functionality-exist-extract-notifications-send-to-email-addresses-list/13839 "2022-11-09T21:47:06Z")

</div>

Is there a way to extract into a spreadsheet the Notifications Send to Email Addresses list? We’re doing an audit of our long notifications list and it would be helpful to review holistically via one single spreadsheet i…

[Next page](https://community.gravityforms.com/tag/gfapi/90.md?match_all_tags=true&page=1&tags%5B%5D=gfapi)
