Webhooks to Jotform

  • Profile Image
    Federico
    Asked on February 10, 2016 at 06:33 PM

    I have an external tool which generate submissions. It send them by POST data to a php file. Is there a way to uploads those leads into one of my forms in Jotforms?

     

    Thank you very much!!! 

  • Profile Image
    Chriistian
    Answered on February 11, 2016 at 02:49 AM

    If I understand correctly, you want to add submission to your form? I believe this documentation can help you with sending a generated submission to a form in jotform. http://api.jotform.com/docs/#post-form-id-submissions 

    Do let us know if you need further assistance.

  • Profile Image
    Chriistian
    Answered on February 11, 2016 at 03:51 AM

    By the way, if your data is in CSV or Excel format, you can import it directly to your form. Just check this guide for more information: Import App Easily import your Excel or CSV data into JotForm.

  • Profile Image
    fserbin
    Answered on February 11, 2016 at 05:37 PM

    Hi, thank you very much for the reply. 

    This is how I made it work:

     

    $jotformAPI = new JotForm($apiKey);

    $submission = array(

       // First submission

       array(

           "3" => array(

           "text" => "este es el nombre",

           ),

           "4" => array(

               "text" => "este@email.com",

           )

           ,

           "5" => array(

               "text" => "este es el telefono",

           ),

           "8" => array(

               "text" => "esto es un comentario",

           ),

           "9" => array(

               "text" => "vienen del chat",

           )

       )

    );

    $data = json_encode($submission);

    $response = $jotformAPI->createFormSubmissions($formId, $data);

  • Profile Image
    Chriistian
    Answered on February 11, 2016 at 07:59 PM

    I am glad to know that you were able to make it work. Let us know if you need further assistance.