Description Usage Arguments Value Examples
View source: R/survey-definitions-blocks.R
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).
1 2 3 4 5 6 7 8 9 | update_block(
survey_id,
block_id,
type = "Standard",
description = "New Block",
id = NULL,
options,
elements
)
|
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 |
A list
1 2 3 4 | ## Not run:
update_block("SV_012345678901234", "BL_723z35LY23KCZ4p")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.