addForm

Description

Adds a new form to a database

Usage

addForm(...)
addForm(schema, parentId = NULL, folderId = NULL, ...)
addForm(databaseId, schema, ...)
addForm(databaseId, schema, ...)

Arguments

Argument Description
... ignored
schema the schema of the form to add
parentId the id of the database or folder to which this form should be added (optional; defaults to the database id)
folderId this argument is deprecated and superceded by parentId. Use folderId in formSchema().
databaseId the id of the database (optional)

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