Can we fire webhooks on page breaks (when changing pages)?

  • Profile Image
    guysyml
    Asked on January 09, 2015 at 09:35 PM

    I am wondering whether it is feasible to attach webhooks to a form at "partial stages" ... For example.  In the event I have a form with multiple tabs, can a webhook be attached to the "next" button on each tab which sends partial information to an address?  

    As it stands from my testing thus far, it only seems possible to send the entire form via webhook at the end sumbission of the form.  Am I correct in this understanding?

    For the sake of context, the reason I am seeking to determine whether webhooks can send data "part way through" a form is because then the later content of the form could be programatically altered through the use of the Jotform API and an external web services application ... 

    Has anyone used this sort of "interactive pattern" in their form design? 

    Thanks,

    Guy

  • Profile Image
    Ben
    Answered on January 10, 2015 at 04:37 PM

    Hi Guy,

    What you are looking for is AJAX, which would allow you to communicate from your jotform to some other points of your server to gather more data and bring them into jotform.

    Now as it stands, we do not support AJAX calls to be made and as such it is not possible to send the data to a webhook while in the middle of the jotform and get the response back while going to a next page, unless you take a full source code of your jotform and implement this into the jotform like that.

    Do note that once implemented, you can not take the jotform back into the builder, so every time you make a change in builder, you will need to take a new source code of your jotform and apply the same change to it.

    Do let us know if you have any further questions.

    Best Regards,
    Ben