Skip to main content

kobotoolbox@2.4.3

getDeploymentInfo(params, callback)
getForms(params, callback)
getSubmissions(params, callback)

This adaptor exports the following from common:

alterState()
cursor()
dataPath()
dataValue()
each()
field()
fields()
fn()
fnIf()
group()
http()
lastReferenceValue()
merge()
sourceValue()

Functions

getDeploymentInfo

getDeploymentInfo(params, callback) ⇒ Operation

Get deployment information for a specific form

ParamTypeDescription
paramsobjectForm Id and data to make the fetch or filter
callbackfunction(Optional) Callback function to execute after fetching form deployment information

Example

getDeploymentInfo({formId: 'aXecHjmbATuF6iGFmvBLBX'}, state => {
console.log(state.data);
return state;
});

getForms

getForms(params, callback) ⇒ Operation

Make a request to get the list of forms

ParamTypeDescription
paramsobjectQuery, Headers and Authentication parameters
callbackfunction(Optional) Callback function to execute after fetching form list

Example

getForms({}, state => {
console.log(state.data);
return state;
});

getSubmissions

getSubmissions(params, callback) ⇒ Operation

Get submissions for a specific form

ParamTypeDescription
paramsobjectForm Id and data to make the fetch or filter
callbackfunction(Optional) Callback function to execute after fetching form submissions

Example

getSubmissions({formId: 'aXecHjmbATuF6iGFmvBLBX'}, state => {
console.log(state.data);
return state;
});