PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

is there a later hook than gform_after_submission?

  1. On form submission I am sending some data to netsuite via soap; netsuite is a third party tracking service. Unfortunately their ingress is notably slow and using this hook, the "thank you" page is delayed until netsuite returns success on the submission, which can take many seconds. This is problematic usability-wise obviously, and it also seems to be causing users to reload the page causing duplicate submissions.

    Anyway, is there a hook I can use to perform this operation _after_ the thankyou page is displayed? Any other workaround suggestions would also be appreciated! Thanks.

    Posted 12 years ago on Tuesday June 19, 2012 | Permalink
  2. David Peralty

    Unfortunately, there are no hooks after the after_submission hook. It is, as far as I've been told, the last hook to be fired that developers can hook into. And even if there was a later hook, I don't see how that would solve your problem. Seems like you need to figure out a way to get netsuite to process and respond faster than it is currently, versus trying to figure out a way to send the information at a different time.

    If you could set it to before the thank you page loads, it would still delay the page load of the thank you message. If you waited until the thank you message was shown, then you couldn't wait for a response from SOAP because a person could close the instance, and you would never know if there was an issue.

    Posted 12 years ago on Tuesday June 19, 2012 | Permalink
  3. Thank you for the prompt reply. Searching netsuite's dev forums with the string 'slow' doesn't inspire confidence that it's response times are going to improve any time soon :-)

    Posted 12 years ago on Tuesday June 19, 2012 | Permalink
  4. David Peralty

    Best of luck. Let us know how it turns out, as lots of people are interested in integrating Netsuite.

    Posted 12 years ago on Tuesday June 19, 2012 | Permalink