Fetch form definitions from a SurveyCTO server
Source:R/scto_get_form_definitions.R
scto_get_form_definitions.Rd
This function fetches spreadsheet form definitions corresponding to the xlsx files downloadable in the Design tab of the SurveyCTO console.
Arguments
- auth
scto_auth()
object.- form_ids
Character vector indicating IDs of the forms.
NULL
indicates all forms.- simplify
Logical indicating whether to return the definition for one form as a simple list instead of a named, nested list.
Value
If simplify
is TRUE
and getting one form definition, a list.
Otherwise a named list of lists containing the definition for each form.
Examples
if (FALSE) {
auth = scto_auth('scto_auth.txt')
scto_def = scto_get_form_definitions(auth, 'my_form')
scto_defs = scto_get_form_definitions(auth)
}