Can Jotform be used for what we have in mind?

  • Francois_Carrillo
    Asked on May 13, 2021 at 12:49 PM

    Hi,


    We are developing the Testify apps (read here to discover what we plan to do testify.com).

    We already allow users to capture in real time, photos, videos, audios, mobile screenshots, and webshots.

    I would like to also offer users a way to do the following and I am wondering if it could be done using jotform API.

    Basically offer a way to fill out a form he previously selected from forms available in the apps (eventually let him previously create a specific form or import existing template forms).

    Once he has filled out the form the submit button will send a notification to our servers (backend servers is written in nodejs) with a custom code and the data he entered (probably in json style), so we can in our server process the form (save it with his account, timestamp it) and once done we will inform the mobile apps that his form submission has been complete.

    For sure if there is a way further to show the form with the data that has been fill out with the same entry design, that will be a plus, for example to allow to continue to fill out a form that has just been saved and not completed.

    Please let me know and if the response is positive, tell me where to start and what kind of Jotform account I need to create to develop/test API for inclusion in our project, and further to go live.


    Thanks in advance!




  • Tommaso_F
    Replied on May 13, 2021 at 1:43 PM

    Greetings,

    We recommend you check this https://api.jotform.com/docs/ for all information about API.
    Furthermore, do not hesitate to contact our team at api@jotform.com

    Please, feel free to contact us for further questions.


    Best regards.

  • Francois_Carrillo
    Replied on May 13, 2021 at 3:09 PM

    I went to https://www.jotform.com/myaccount/api and create a key, but no button to create an App?

    Probably need it to can test the API, no?

    How I continue?

  • Francois_Carrillo
    Replied on May 13, 2021 at 4:05 PM

    I tested this simple NPM nodejs script that is shown everywhere to use Jotforms on backend runningnodejs:

    var jotform = require("jotform")

                jotform.options({

                    debug: true,

                    apiKey: "... API KEY..."

                });

                jotform.getUser().then(function(r){

                    /* successful response after request */

                    console.log("OK")

                }).fail(function(e){

                    /* handle error */

                    console.log("FAIL")

                })

    I did not get any error but never got an OK or FAIL in the console.

    For info the inner code in the jotform library fires this log when executed:

    GET to URL: https://api.jotform.com/user?apiKey=... API KEY...


    Pretty strange... I was expecting if I succeed to get the user then OK be show, if no then FAIL be shown.

    I am missing something?

  • VincentJay
    Replied on May 13, 2021 at 7:48 PM

    Hi,

    You cannot add JS to the form. Is that what you're trying to achieve?

    If you download the full source code and host it to your server, you can inject the JS and see if that would work. Here's a guide: https://www.jotform.com/help/104-how-to-get-the-full-source-code-of-your-form


  • Francois_Carrillo
    Replied on May 13, 2021 at 9:11 PM
    With all due respect.
    Your response has no sense!!!??
    I am simply trying to call the API in my backend nodejs server using the library you suggest.
    Please read carefully or pass it to someone with enough knowledge please.
    Envoyé de mon iPhone
    ...
  • Vanessa_T
    Replied on May 14, 2021 at 3:58 AM

    I read your message from the start, however, I too am confused on what you are trying to achieve here.

    Nevertheless, if you plan to use our API, please check out this page that was previously provided by my colleague:

    https://api.jotform.com/docs/

    As to how you'll call it, what you'll do to the data you receive, that depends entirely on your needs and that you will be the one who will create the script to call our API.

    I went to https://www.jotform.com/myaccount/api and create a key, but no button to create an App?

    As for your highlighted statement above, I am not sure what you meant by create an App. Creating a new API Key allows you to use our API which you can call within your own scripts.