addForm

Description

Adds a new form to a database

Usage

addForm(...)
addForm(schema, folderId = schema$databaseId, ...)
addForm(databaseId, schema, folderId = databaseId, ...)
addForm(databaseId, schema, folderId = databaseId, ...)

Arguments

Argument Description
... ignored
schema the schema of the form to add
folderId the id of the folder to which this form should be added
databaseId the id of the database

See also

formSchema , formFieldSchema , Add and manipulate databases and forms using R

Examples

addForm(formSchema(
  databaseId = myDatabaseId,
  label = "ActivityInfo form generated from R",
  elements = list(
    textFieldSchema(label = "What is your name?", code = "name", required = TRUE),
    dateFieldSchema(label = "When were you born?", code = "dob"))))
Next item
addFormField