Comments (2)
My reply to this wrong answer Answered by Denis on December 20, 2016 at 02:34 AM
from this thread .
I don't know who you are, but you do not look like a developer. Because what you say DOES NOT WORK!
Look at screenshot here.
Screenshot 1.
Postman request.
And the result is this. As you can see it is far from success.
Where are other items? Where are Status 2","Status 3
?
123: {
text: "Status",
type: "control_checkbox",
answer: [
"Status 1"
],
prettyFormat: "Status 1"
},
Case2.
A real life request with nodejs request
library.
Again, as you said comma separated without square brackets
let request_options = {
method: 'POST',
url: 'https://api.jotform.com/submission/' + submission_id,
headers: {
"APIKEY": api_key,
"cache-control": "no-cache",
"accept": "application/json",
},
form: {
"submission[123]": '"Status 1","Status 2","Status 3"', // comma separated without square brackets
}
}
request(request_options, (err, response, body) => {
if(err) {
res.status(500).json({error: err });
}
res.status(200).json({body: body });
})
The result is the same as before, only one item saved:
123: {
text: "Status",
type: "control_checkbox",
answer: [
"Status 1"
],
prettyFormat: "Status 1"
},
Either your JotForm API doesn't work, or you do not know how it works.
Can anybody qualified enough explain how JotForm API works? What is format of data for such an update request? Jotform API documentation is miserable. So as developers' answers as I can see.
from jotform-api-nodejs.
I need you to tell me the following
- What are types are (precisely) for key and value pairs?
submission[123]
: '"Status 1", "Status 2", "Status 3"'
- What type is
submission[123]
? - What type is
123
? - What quotes have to be used? Single or double?
"submission[" + 123 + "]": <- int
"submission[" + '123' + "]": <- str
- What type is
'"Status 1", "Status 2", "Status 3"'
? Array? String? - What is the delimiter?
"Status 2", "Status 3"
A comma? A semicolon? anything else?
from jotform-api-nodejs.
Related Issues (20)
- [formIDs, form_ids:ne] None of the filters work in your API HOT 1
- created_at:{operator} filters do not work when formIDs filter is specified HOT 3
- formId filter for "GET /user/forms" endpoint HOT 10
- Error: connect ETIMEDOUT 104.23.128.7:443 HOT 1
- npm install error
- Your servers send no response for GET /user/submissions HOT 2
- Still empty response for GET /user/submissions HOT 2
- JSON Engine failed. ERRCODE: #Malformed UTF-8 characters. What is this? HOT 3
- [SECURITY] node-uuid: crypto not usable, falling back to insecure Math.random() HOT 1
- Error in node v11.10.1 If `timeout` is not specified
- When trying to use deleteSubmission, gives an error
- Hot To Use? HOT 2
- Bad handling of API errors in library HOT 2
- No EU Protected Mode HOT 1
- Vulnerable Dependencies in Package HOT 1
- TypeScript typings HOT 1
- TypeError: Cannot read property 'statusCode' of undefined || Best practices for bulk requests? HOT 1
- Filter "form_id" doesn't work for "GET /user/forms" HOT 1
- TypeError: Cannot read property 'statusCode' of undefined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jotform-api-nodejs.