update_block: Update a block

Description Usage Arguments Value Examples

View source: R/survey-definitions-blocks.R

Description

You can update an existing block, including the blocks meta information and the the block's elements. If you update the block elements and you add for example a new question, you must make sure the question exisists in the survey (see list_questions and create_question).

Usage

1
2
3
4
5
6
7
8
9
update_block(
  survey_id,
  block_id,
  type = "Standard",
  description = "New Block",
  id = NULL,
  options,
  elements
)

Arguments

survey_id

the survey id

block_id

the block id

type

block type

description

block description

id

a unique block id identifier (should be of form BL_FakeBlockID1234)

options

list of block options

elements

list of block elements

Value

A list

Examples

1
2
3
4
## Not run: 
update_block("SV_012345678901234", "BL_723z35LY23KCZ4p")

## End(Not run)

ppssphysics/QualtricsInR documentation built on Aug. 30, 2021, 8:12 a.m.