What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    My Submission HTTP Post via API is getting bad request

    Asked by fgroupindonesia on May 06, 2015 at 02:51 PM

    HI 

    I put my own UI on the similar input for my Jotform from this : http://pelatihan-kursus-komputer-bandung.blogspot.com/ page.

     

    Once you enter some values inside the popup box, i initially wanted to make it to be POSTED into my JOTFORM. But seems not working . I ended up getting this error message:

     

    {"responseCode":400,"message":"Bad request (\/form-id-submissions) - Submissions couldn't inserted","info":"http:\/\/api.jotform.com\/docs#form-id-submissions","limit-left":9997,"duration":"11ms"}


    What should I do to make it works?

    Page URL:
    http://pelatihan-kursus-komputer-bandung.blogspot.com/

    http post form post jotform api
  • Profile Image
    JotForm Support

    Answered by Mike on May 06, 2015 at 04:32 PM

    To be able to submit the data in this way, you will need to use correct question IDs as names for your inputs.

    You can get the information about form question IDs with:

    http://api.jotform.com/docs/#form-id-questions

    Then, modify your code to use them in the following way.

    For example, Email field on your form has qid: "5", so the code will be:

    name="submission[5]"

    Note, API post submissions do not trigger form email notification(s). Also, showing API key in your page sources might not be secure.

    We also provide a source code option, so the code can be modified and used for regular non-api submissions.

    If you need any further assistance, please let us know.

  • Profile Image

    Answered by fgroupindonesia on May 06, 2015 at 08:17 PM

    but I already put the "submission[id]" to each specific inputs form.

     

    And the error I obtained still there, what did I forgot to put for?

     

    Posing an API KEY is a risk? Well.... if you say so,

    then i would try to use your source-code option then.

  • Profile Image
    JotForm Support

    Answered by jonathan on May 07, 2015 at 12:17 AM

    Please let us know if you need further assistance.

    Thanks.