delete_element: Delete an element

Description Usage Arguments Value Examples

View source: R/elements.R

Description

Deletes an element from a page (form or subform)

Usage

1
delete_element(server_name, profile_id, page_id, element_id, access_token)

Arguments

server_name

String of the iFormBuilder server name.

profile_id

Integer of the iFormBuilder profile ID.

page_id

Page ID from where the element will be deleted

element_id

Integer ID of the new element that will be deleted

access_token

Access token produced by get_iform_access_token

Value

ID of the deleted element.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 
# Pull out id from new_element created previously
new_element_id = new_element$id

# 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 element
deleted_element <- delete_element(
  server_name = "your_server_name",
  profile_id = "your_profile_id",
  page_id = "existing_page_id",
  element_id = new_element_id,
  access_token = access_token)
  
## End(Not run)

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