delete_option_list: Delete option list

Description Usage Arguments Value Author(s) Examples

View source: R/option_lists.R

Description

Deletes an option list from a profile. Deleting options and option lists should be done with consideration for existing data referencing the list. As an alternative, options can be disabled by setting their condition value to 'False'

Usage

1
delete_option_list(server_name, profile_id, access_token, option_list_id)

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

option_list_id

ID of the option list to be deleted.

Value

ID of the option list to be deleted.

Author(s)

Bill DeVoe, William.DeVoe@maine.gov

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## 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")

# Delete option list
deleted_id <- delete_option_list(
  server_name = "your_server_name",
  profile_id = "your_profile_id",
  access_token = access_token,
  option_list_id)
  
## End(Not run)

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