How to use JotForm API?

  • deepalisingh
    Asked on December 11, 2014 at 9:58 AM

    Hi,

     

    I have downloaded the JotForm api . And stated working on it. The example git hub is limited to getting form , data, delete etc.

     

    I want to customize form by adding certain question.

     

    they have an api to post

    like

    http://api.jotform.com/docs/

     

    under post question section . can you give me idea What value i need to provide to create a question in my form.

    how to do same using java api?

     

    I am doing this in my java code:

    JotForm jform=new JotForm("MY_Key_API");
           
            JSONObject jobject=jform.getForm(My_FormID);
           

    HashMap<String, String> prop=new HashMap<String,String>();
    prop.put("type","control_textbox");
    prop.put("text","how is this form??");


    System.out.println(jform.createFormQuestion(43438914877469l, prop));

     

    But I am getting following response:

    {"message":"Bad request (/vid-form-id-questions) - Question not created!","responseCode":400,"limit-left":4944,"info":"http://api.jotform.com/docs#vid-form-id-questions"}

     

    Can you please tell me what is the way to do it correctly?

     

    Please need urget assistence

  • Ben
    Replied on December 11, 2014 at 12:18 PM

    Hi,

    It is nice to hear that you are using our API to build upon. I would however ask you to ask this on our developers forum instead.

    You will be able to see the issues others had and how they resolved it as well.

    This forum is intended for support for our online JotForm Builder.

    Best Regards,
    Ben