create_page: Create page

Description Usage Arguments Value Author(s) Examples

View source: R/forms.R

Description

Creates a new page (form or subform) in the given profile with the name and label specified. The name provided will be converted to iFormBuilder standards; punctuation and whitespace replaced with _ and all text to lowercase.

Usage

1
create_page(server_name, profile_id, access_token, name, label)

Arguments

server_name

String of the iFormBuilder server name.

profile_id

Integer of the iFormBuilder profile ID.

access_token

Access token produced by get_iform_access_token

name

String of new page name; coerced to iFormBuilder table name conventions.

label

String of the label for the new page.

Value

Integer of the new page ID.

Author(s)

Bill DeVoe, William.DeVoe@maine.gov

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
# Get access_token
access_token <- get_iform_access_token(
  server_name = "your_server_name",
  client_key_name = "your_client_key_name",
  client_secret_name = "your_client_secret_name")

# Create new page
new_page_id <- create_page(
  server_name = "your_server_name",
  profile_id = "your_profile_id",
  access_token = access_token,
  name = "new_form_name",
  label = "New Form Label")

## End(Not run)

arestrom/iformr documentation built on Nov. 25, 2021, 11:21 p.m.