Form Builder will not load when passed a Form ID

  • 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:

    Form Builder will not load when passed a Form ID Image 1 Screenshot 20

    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.

  • Ashwin JotForm Support
    Replied on July 20, 2017 at 4: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!

  • GPTQ
    Replied on July 20, 2017 at 7: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

        });

     

  • liyam
    Replied 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.

  • hlajotform
    Replied 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

  • liyam
    Replied on July 21, 2017 at 2: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.