# \#submit\_form

**URL:** https://community.gravityforms.com/tag/submit-form/1222.md

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

---

## [Form Submit JavaScript Event Not Firing](https://community.gravityforms.com/t/form-submit-javascript-event-not-firing/18784)

<div class="topic-metadata">

**Author:** [@josh.nederveld](https://community.gravityforms.com/u/josh.nederveld)\
**Replies:** 4\
**Last updated:** [January 23, 2025, 5:18pm UTC](https://community.gravityforms.com/t/form-submit-javascript-event-not-firing/18784 "2025-01-23T17:18:26Z")

</div>

In version 2.8.18, when the user clicks the submit button, the native JavaScript form submit event fires. In version 2.9.0 and beyond, the event does not fire. I’ve tested this on the Gravity Forms demo page with this co…

---

## [Using GFAPI::submit\_form() to add entries](https://community.gravityforms.com/t/using-gfapi-submit-form-to-add-entries/11449)

<div class="topic-metadata">

**Author:** [@rowanpurdy](https://community.gravityforms.com/u/rowanpurdy)\
**Replies:** 4\
**Last updated:** [December 17, 2021, 6:01pm UTC](https://community.gravityforms.com/t/using-gfapi-submit-form-to-add-entries/11449 "2021-12-17T18:01:06Z")

</div>

I am trying to use GFAPI::submit\_form() to add entries to an assessment form (ID=2) with the following code within functions.php. This code should fire when a user registers with the website via another user registratio…

---

## [GFAPI::submit\_form, how to submit multiple forms at once with custom input values? \[RESOLVED\]](https://community.gravityforms.com/t/gfapi-submit-form-how-to-submit-multiple-forms-at-once-with-custom-input-values-resolved/11143)

<div class="topic-metadata">

**Author:** [@jonathanpak](https://community.gravityforms.com/u/jonathanpak)\
**Replies:** 3\
**Last updated:** [November 14, 2021, 11:19pm UTC](https://community.gravityforms.com/t/gfapi-submit-form-how-to-submit-multiple-forms-at-once-with-custom-input-values-resolved/11143 "2021-11-14T23:19:20Z")

</div>

Hello everybody, I’m trying to programmaticaly submit some forms, where each form contains a field called “User Id” with the ID 999. Here’s what my code looks like : $input\_values\['input\_999'\] = $user\_id; // for exemp…

---

## [Create a second entry based on a checkbox](https://community.gravityforms.com/t/create-a-second-entry-based-on-a-checkbox/10883)

<div class="topic-metadata">

**Author:** [@lcibelli](https://community.gravityforms.com/u/lcibelli)\
**Replies:** 4\
**Last updated:** [October 20, 2021, 1:10am UTC](https://community.gravityforms.com/t/create-a-second-entry-based-on-a-checkbox/10883 "2021-10-20T01:10:58Z")

</div>

I am running a contest using GF. I want to be able to create a second entry into the contest based on conditional logic of a checkbox. For example, this is for a Breast Cancer fundraiser and there is a contest. If someo…

---

## [File upload via GFAPI::submit\_form](https://community.gravityforms.com/t/file-upload-via-gfapi-submit-form/9113)

<div class="topic-metadata">

**Author:** [@abtronic27](https://community.gravityforms.com/u/abtronic27)\
**Replies:** 0\
**Last updated:** [May 13, 2021, 6:13am UTC](https://community.gravityforms.com/t/file-upload-via-gfapi-submit-form/9113 "2021-05-13T06:13:26Z")

</div>

Is there a way to upload a file via the submit\_form method of the php api? I have looked through the documentation on the submit\_form method but have not seen an example processioning a file upload field.
