# Javascript submit redirect push

**URL:** <https://community.gravityforms.com/t/javascript-submit-redirect-push/2017>\
**Category:** Get Help\
**Created:** [June 4, 2019, 12:06pm UTC](https://community.gravityforms.com/t/javascript-submit-redirect-push/2017 "2019-06-04T12:06:07Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![sparklem](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@sparklem](https://community.gravityforms.com/u/sparklem)\
**Post date:** [June 4, 2019, 12:06pm UTC](https://community.gravityforms.com/t/javascript-submit-redirect-push/2017/1 "2019-06-04T12:06:07Z")

</div>

Hi All,

I know it’s possible to add javascript into Gravity Forms confirmation, as I’m doing that with google’s lead conversion javascript. IE using something like this in the text on the confirmation:

I need redirect / login to another lead site on confirmation for another form.

Does anyone know how to do that or another way to accomplish this? Thank you in advance!

Like this.

```
<form method="post" action="https://online.tlleadmanager2.com/agents_WebLeads.php">
<input type="hidden" name="Source" value="TOBEPROVIDED" />
<input type="hidden" name="LeadType" value="TOBEPROVIDED" />
<input type="hidden" name="RedirectToURL" value="#REDIRECTURL" />
```

---

<div class="post-metadata">

**Author:** ![sparklem](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@sparklem](https://community.gravityforms.com/u/sparklem)\
**Post date:** [June 4, 2019, 12:16pm UTC](https://community.gravityforms.com/t/javascript-submit-redirect-push/2017/2 "2019-06-04T12:16:10Z")

</div>

Will the Webhooks Add-On to Gravity Forms accomplish this redirect?

---

<div class="post-metadata">

**Author:** ![sparklem](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@sparklem](https://community.gravityforms.com/u/sparklem)\
**Post date:** [June 4, 2019, 12:32pm UTC](https://community.gravityforms.com/t/javascript-submit-redirect-push/2017/3 "2019-06-04T12:32:17Z")

</div>

What about Zapier add on? Will that push form data to a redirect URL log in?

---

<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:** [June 4, 2019, 1:35pm UTC](https://community.gravityforms.com/t/javascript-submit-redirect-push/2017/4 "2019-06-04T13:35:55Z")

</div>

Can you use the built in Redirect confirmation to send them to your lead site after submission?

---

<div class="post-metadata">

**Author:** ![sparklem](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@sparklem](https://community.gravityforms.com/u/sparklem)\
**Post date:** [June 4, 2019, 1:38pm UTC](https://community.gravityforms.com/t/javascript-submit-redirect-push/2017/5 "2019-06-04T13:38:54Z")

</div>

I can, but I don’t know how to get it to log in, so it lands on the redirect page, but doesn’t log into it to send the data to it. It’s beyond my brain knowledge, it has to send this and send this to send the form data to the lead company.

---

<div class="post-metadata">

**Author:** ![sparklem](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@sparklem](https://community.gravityforms.com/u/sparklem)\
**Post date:** [June 4, 2019, 1:42pm UTC](https://community.gravityforms.com/t/javascript-submit-redirect-push/2017/6 "2019-06-04T13:42:55Z")

</div>

Oops it didn’t paste, here it is, it has to send the user/password and form data

 ![screen](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/1/1fe4ef88bb8d026afd04681f878652c814e90129.png)

---

<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:** [June 4, 2019, 1:55pm UTC](https://community.gravityforms.com/t/javascript-submit-redirect-push/2017/7 "2019-06-04T13:55:50Z")

</div>

I don’t think you want to redirect the visitor then, you just want to send the data there. The Webhooks add-on can do that, or you could use this third party solution:

> **[Gravity Forms Post to 3rd Party - by @gravityplus](https://gravityplus.pro/gravity-forms-post-to-3rd-party/)**
>
> Send your Gravity Forms form submission data to any third-party that provides a URL to POST the data, like MailChimp

Or you can use some custom code using the gform\_after\_submission hook:

> **[gform\_after\_submission](https://docs.gravityforms.com/gform_after_submission/)**
>
> This PHP action hook is executed at the end of the submission process (after form validation, notification, and entry creation). Use this hook to perform actions after the entry has been created (i.e. feed data to third party applications).

---

<div class="post-metadata">

**Author:** ![sparklem](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@sparklem](https://community.gravityforms.com/u/sparklem)\
**Post date:** [June 4, 2019, 1:57pm UTC](https://community.gravityforms.com/t/javascript-submit-redirect-push/2017/8 "2019-06-04T13:57:44Z")

</div>

You’re brilliant! Thank you I’ll try those!

---

<div class="post-metadata">

**Author:** ![sparklem](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@sparklem](https://community.gravityforms.com/u/sparklem)\
**Post date:** [June 4, 2019, 9:47pm UTC](https://community.gravityforms.com/t/javascript-submit-redirect-push/2017/9 "2019-06-04T21:47:02Z")

</div>

Next question.

Who do you pay to do a custom URL redirection java hook customization to a form?  
It works and connects fine html to the lead provider’s PHP but I don’t know java.

Is there some customization pay service?

---

<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:** [June 5, 2019, 3:29am UTC](https://community.gravityforms.com/t/javascript-submit-redirect-push/2017/10 "2019-06-05T03:29:36Z")

</div>

You could post it here:

[https://community.gravityforms.com/c/job-board](https://community.gravityforms.com/c/job-board)

---

<div class="post-metadata">

**Author:** ![richardw8k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/richardw8k/32/2354_2.png) [@richardw8k](https://community.gravityforms.com/u/richardw8k)\
**Post date:** [January 4, 2022, 5:23pm UTC](https://community.gravityforms.com/t/javascript-submit-redirect-push/2017/11 "2022-01-04T17:23:09Z")

</div>

Closed on January 4, 2022, 5:23pm UTC


