can i adjust URL in webhook with variables from specific forms

  • gregg1gregg
    Asked on July 14, 2015 at 12:11 PM

    My provider needs something like this:

    http:// ....

    ?firstName=Abby&lastName=Smith&agencyName=NAME&street=123 Main&city=TOWN&=state=XX&zip=12345&yourEmail=abc@abc.com&leadSource=16&campaign=24&comment=Comment text&ip=66.83.46.10&leadStatus=22

     

  • Boris
    Replied on July 14, 2015 at 1:55 PM

    Could you please provide a little more detail on the exact setup you are looking for?

    From your post, it seems like you may actually want to pass information through URL variables, as used in our Prepopulating-of-fields-to-your-JotForm-via-URL-parameters. If you wish to pass data to your server directly via the URL as URL parameters, you can use a custom Thank-You-Page URL, such as:

    http://example.com/inbound.php?firstName={firstName}&lastName={lastName}&agencyName={agencyName}&street={street}&city={city}

    If you are trying to pass submitted data as a WebHook, from the form to your destination - please take a look at our guide on Creating-your-first-Webhook-with-JotForm. Some already existing Webhook-Samples may help as well.

    We also support passing data from your JotForm as Post Data directlyto your own custome PHP page, for which we have a guide here: Send-POST-Data-From-JotForm-Using-PHP-in-Custom-Thank-You-Page

    I hope this helps.

  • gregg1gregg
    Replied on July 14, 2015 at 2:25 PM

    I am using a third party system where the data is input into a CRM-like database ... it needs the data from JotForm in the populated in the URL format shown above.  The webhook connects and creates a new blank record in  the CRM-like dtabase now .... how do i create a http: string to corospond with the one I showed above?   Zapier creates one nicely, but who needs the middle-man?

  • gregg1gregg
    Replied on July 14, 2015 at 3:44 PM

    The custom thank you page might get the job done, but would be a pretty awkward user experience in that they'd get a useless page at my database

  • David JotForm Support
    Replied on July 14, 2015 at 3:46 PM

    The methods posted by my colleague are about as close as you can get using only JotForm.  You can POST the data to your server directly, but the format of the URL would need to be the similar to what my colleague showed and may not be configurable to your specifications.  Other than using the Thank You page, Zapier will likely be your best bet.

    There is unfortunately no way to POST the data to your thank you URL and have a thank you page as well.

  • gregg1gregg
    Replied on July 14, 2015 at 3:54 PM

    It's a shame to pay zapier $50 a month.  To confirm, there is now ay to configure the webhook URL as you colleague outlined.

  • David JotForm Support
    Replied on July 14, 2015 at 4:02 PM

    You can indeed setup the URL as my colleague mentioned.  However, the setup for that URL is specific to your forms field ID's so it would need to be setup in a required manner.  The URL needed for your purposes does look very similar to what can be created and passed in the method my colleague mentioned so as long as those constraints work for your purposes, you should be fine without Zapier.

  • gregg1gregg
    Replied on July 14, 2015 at 4:26 PM

    How do I construct my URL in webhooks.  I tried manually ... (ie. http:// ....... ?firstName={firstName}&lastName={LastName}

     ... and that didn't do what I wanted (adopting the form data)

  • David JotForm Support
    Replied on July 14, 2015 at 6:43 PM

    Using WebHooks and using the POST method require two different setups.  Here is what the WebHook method data forwarding would look like:

    http://www.jotform.com/help/245-Creating-your-first-Webhook-with-JotForm

    http://pastiebin.com/555a33dc712ef

    And POST method:

    http://www.jotform.com/help/213-Send-POST-Data-From-JotForm-Using-PHP-in-Custom-Thank-You-Page

    http://pastiebin.com/52565af9ce057

    You will be collecting the raw data and then need to setup your script to forward the raw data to your form.  The webhook method would require you to first capture the data, then construct your URL from the raw data.  It will not forward the populated URL.  I have not actually tried this setup so this is just from my understanding.