Form Builder will not load when passed a Form ID

  • Profile Image
    GPTQ
    Asked on July 20, 2017 at 12:53 AM

    Hello,

    I have a website and I am using Javascript to integrate JotForms in my website. I am trying to Create a new blank form and then pass that newly created form ID to the launchBuilder method, although it just shows a blank window and I get the following errors in my console:

    The code I am using is:

    // Create a JotForm from scratch

    function createNewForm() {

     

    // Create new object to store properties of a blank form.

    var formObject = {

    apikey: apiKey,

    questions: { 1: {

    type: "control_head",

    text: "Form Title - Start adding questions!",

    order: "1" }

    }, properties: { title: "Untitled Form New" }

    };

    JF.createForm(formObject,function(response){

        JotformAnywhere.launchBuilder({

            formID: response.id// Form to load

        });

    });

    }

     

    I get the same error if I just call JotformAnywhere.launchBuilder and pass an existing Forms ID.

    I do not get the error when I don't pass any form ID.

     

    Please help!

    Thank you.

  • Profile Image
    ashwin_d
    Answered on July 20, 2017 at 04:22 AM

    Hello GPTQ,

    It seems you are using JotForm API to create form on the fly. I am not sure what is causing this issue. I would suggest you to please go through our API documentation and see if that help you: http://api.jotform.com/ 

    I would also suggest you to please connect with out api team by sending an email at api@jotform.com

    Thank you!

  • Profile Image
    GPTQ
    Answered on July 20, 2017 at 07:07 PM

    Hi Ashwin,

    It seems to be the JotformAnywhere.launchBuilder that is the problem. There is no issue creating the form, there is only an issue when you pass a form ID to the launchBuilder method. Even just the code below does not work (I use an existing form ID).

        JotformAnywhere.launchBuilder({

            formID: 71998947905883

        });

     

  • Profile Image
    liyam
    Answered on July 21, 2017 at 12:07 AM

    Hello GPTQ,

    Have you submitted your inquiry over the issue you are having through the contact page of JotForm Anywhere? Here is the link: https://www.jotform.com/anywhere/#contact

     By submitting through the contact page, you directly forward your concern to the developers of JotForm Anywhere.

    Thanks.

  • Profile Image
    hlajotform
    Answered on July 21, 2017 at 12:12 AM

    Hi Liyam,

    I have emailed api@jotform.com is this the same as lodging a contact request through the link you specified?

    from GPTQ

  • Profile Image
    liyam
    Answered on July 21, 2017 at 02:09 AM

    Thanks for your response.

    Yes, an email to the API team and submission through the form on the page will both land the same to the API team inbox. For the meantime, you can wait until they respond to your concern.

    Thanks for your patience and we apologize for this inconvenience.