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.
Is there a method in the API to get the different field ID's?Asked by davem on June 29, 2016 at 12:43 PM
I've got a web app that we are looking to integrate with Jotform, and to make it easier on the users, when they fill out a form like a support request, we would like to pass the username from our system to the form. I've seen where it can be done with the url query, but I was hoping to find a way to get a full list of the ID's so an admin can map fields from our app to the appropriate questions on a form without the risk of mistyping something.
I'm not sure if fully understood your question, but I can see it's possible to get the names of fields in a form with the API, for example, I just have tried with this code:
$form = $jotformAPI-> getFormQuestions(61756142981966);
I got an array with questions in the form as well as all their data, here is the link to the form that I'm testing: https://form.jotform.com/61756142981966
The result is currently looking like this:
I think doing this you will be able to get each name of the needed questions in a form, here is a link to our API documentation that may help you with this: http://api.jotform.com/docs/#form-id-questions
This link may be helpful as well: http://developers.jotform.com/libraries
You can also contact our API team in order to get help directly from our developers, feel free to send them an email here: firstname.lastname@example.org