<p>I need to catch the POST of a new user's submission where some fields need to be put on a child table.
I can't get the right hook to do it.
I created a module to catch the route and I put a debug info in it but there is no call whatsoever to the module/route.
Using the 3.12+ version of freeform, I see I can use</p>
<pre><code>    url: &quot;https://somesite.com/stuff&quot;,
    triggerPhrase: &quot;success&quot;
}
</code></pre>
<p>or even this feature in the form itself but looking at the Network console, no call is made.</p>
<p><a href="https://i.sstatic.net/I9qZ9.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/I9qZ9.png" alt="enter image description here" /></a></p>

CC BY-SA 4.0
2021-11-30T10:21:46.523Z
You won't see anything in browser tools for POST Forwarding because the request is made server-side, not client-side (i.e., the server receives the form submission and then forwards it on to the URL specified). Additionally, the error trigger should be a trigger word for an unsuccessful response from the endpoint (which should originate from that endpoint).
James Smith
CC BY-SA 4.0
2021-12-01T13:33:02.490Z
Oh, that's good to know. I will try to go from there. Thanks !
Sylvain Tremblay
<plugin-freeform><solspace>
Freeform Post Forwarding
# Freeform Post Forwarding

(Asked by: username_0 on 2021-11-29)

I need to catch the POST of a new user's submission where some fields need to be put on a child table.
I can't get the right hook to do it.
I created a module to catch the route and I put a debug info in it but there is no call whatsoever to the module/route.
Using the 3.12+ version of freeform, I see I can use
    url: "https://somesite.com/stuff",
    triggerPhrase: "success"
}

or even this feature in the form itself but looking at the Network console, no call is made.

**Tags:** plugin-freeform, solspace
> **Comments:**
> **username_1**: You won't see anything in browser tools for POST Forwarding because the request is made server-side, not client-side (i.e., the server receives the form submission and then forwards it on to the URL specified). Additionally, the error trigger should be a trigger word for an unsuccessful response from the endpoint (which should originate from that endpoint).  
> **username_0**: Oh, that's good to know. I will try to go from there. Thanks !  

---

## 0 answers

