scto_get_form_definitions {rsurveycto} | R Documentation |
This function fetches spreadsheet form definitions corresponding to the xlsx files downloadable in the Design tab of the SurveyCTO console.
scto_get_form_definitions(auth, form_ids = NULL, simplify = TRUE)
auth |
|
form_ids |
Character vector indicating IDs of the forms. |
simplify |
Logical indicating whether to return the definition for one form as a simple list instead of a named, nested list. |
If simplify
is TRUE
and getting one form definition, a list.
Otherwise a named list of lists containing the definition for each form.
scto_auth()
, scto_meta()
, scto_read()
,
scto_get_attachments()
, scto_write()
## Not run:
auth = scto_auth('scto_auth.txt')
scto_def = scto_get_form_definitions(auth, 'my_form')
scto_defs = scto_get_form_definitions(auth)
## End(Not run)