-
horstheinze2Asked on September 29, 2025 at 3:25 AM
Hello
Could you kindly help us with some additional working examples for this API method
https://api.jotform.com/docs/#post-form-id-submissions
We particularly need examples for
- - date picker
- - multiple choice (multi-select)
- - input table
- fi- ll in the blank (nice to have)
Your help will be much appreciated
Best
Horst
-
Podo: Support AI AgentReplied on September 29, 2025 at 3:25 AM
Hi Horst,
Thanks for reaching out to Jotform Support. Let me help you with that:
Regarding your request for additional working examples for the API method POST /form/{id}/submissions, here is some guidance:
- Date Picker: While the Date Picker widget is not directly available in the App Builder, you can create a form with the Date Picker widget and then add that form to your app. This allows you to collect date inputs effectively.
- Multiple Choice (Multi-select): You can submit multiple selections by including the selected values as an array in the submission data for the multiple choice field.
- Input Table: For input tables, you can send data as a nested object or array representing the rows and columns of the table in your submission payload.
- Fill in the Blank: This is a nice-to-have feature; you can treat it as a text input field in your submission data.
For detailed examples and exact payload structures, please refer to the official API documentation linked above.
Let us know if you need further assistance.
-
horstheinze2Replied on September 29, 2025 at 3:26 AM
This did not solve my query. Put me through to a human for response
-
Podo: Support AI AgentReplied on September 29, 2025 at 3:26 AM
Hi Horst,
I understand that the previous response did not fully address your query. I will escalate this to our support team for further assistance.
-
Norwyn Enterprise SupportReplied on September 29, 2025 at 3:45 AM
Hello there,
Thanks for reaching out to Jotform Support. I've forwarded your concern to the Technical Team. We'll get back to you via this same thread once we have an update.
We highly appreciate your patience in the meantime.
-
Ravi JotForm SupportReplied on October 1, 2025 at 2:08 AM
Hi Horst,
If I understand correctly, you’re looking to submit data to your form using the API and need guidance on how to structure the payload for specific field types such as Date Picker, Multiple Choice (multi-select), Input Table, and Fill in the Blank, correct?
Yes, you can send values to these field types using a POST request to the Jotform API. First, you’ll need to retrieve the field IDs (QIDs) using this GET request:
https://api.jotform.com/form/{FORM_ID}/questions?apiKey={API_KEY}
Each field will have a QID that you’ll use in your payload. Once you have them, you can create a submission with a POST call.
https://api.jotform.com/form/{FORM_ID}/submissions?apiKey={API_KEY}
For a Date Picker field, if the QID is 20, you’d send submission[20][month]=05, submission[20][day]=28, and submission[20][year]=2023.
curl -X POST "https://api.jotform.com/form/{FORM_ID}/submissions?apiKey={API_KEY}" \
-d 'submission[20][month]=05' \
-d 'submission[20][day]=28' \
-d 'submission[20][year]=2023'
For a Multiple Choice field with QID 31, you can send multiple options as an array like submission[31][]=Option 1 and submission[31][]=Option 3.
curl -X POST "https://api.jotform.com/form/{FORM_ID}/submissions?apiKey={API_KEY}" \
-d "submission[31][]=" \
--data-urlencode "submission[31][]=Option 1" \
--data-urlencode "submission[31][]=Option 3"
For an Input Table with QID 23, you submit values using row and column indexes, for example submission[23][0][0]=5/6, submission[23][0][1]=180, submission[23][0][2]=120/80, and submission[23][0][3]=76 where the first index is the row and the second is the column.
curl -X POST "https://api.jotform.com/form/{FORM_ID}/submissions?apiKey={API_KEY}" \
-d "submission[23][0][0]=5/6" \
-d "submission[23][0][1]=180" \
-d "submission[23][0][2]=120/80" \
-d "submission[23][0][3]=76"
For a Fill in the Blank field with QID 45, you provide values for each blank either by index or by name depending on how your form is set up, for example submission[45][0]=John, submission[45][1]=Doe, and submission[45][2]=Acme Ltd.
curl -X POST "https://api.jotform.com/form/{FORM_ID}/submissions?apiKey={API_KEY}" \
--data-urlencode "submission[45][0]=John" \
--data-urlencode "submission[45][1]=Doe" \
--data-urlencode "submission[45][2]=Acme Ltd."
Putting this together, a complete example would look like this:
curl -X POST "https://api.jotform.com/form/{FORM_ID}/submissions?apiKey={API_KEY}" \
-d 'submission[20][month]=05' \
-d 'submission[20][day]=28' \
-d 'submission[20][year]=2023' \
--data-urlencode "submission[31][]=Option 1" \
--data-urlencode "submission[31][]=Option 3" \
-d "submission[23][0][0]=5/6" \
-d "submission[23][0][1]=180" \
-d "submission[23][0][2]=120/80" \
-d "submission[23][0][3]=76" \
--data-urlencode "submission[45][0]=John" \
--data-urlencode "submission[45][1]=Doe" \
--data-urlencode "submission[45][2]=Acme Ltd."
Reach out again if you need any other help.
Your Reply
Something Went Wrong
An error occurred while generating the AI response. Please try again!