Description Usage Arguments Value Examples
View source: R/survey-definitions-blocks.R
To retrieve a specific survey block, you need to pass the survey id and the block id. The latter can be retrieved using the get_survey_flow function or the get_survey function.
1 | create_block(survey_id, type = "Standard", description = "Block", ...)
|
survey_id |
the survey id |
type |
block type (Standard, Default or Trash) |
description |
block description |
... |
block options |
A list with the associated block id and flow id
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
create_block(
"SV_012345678901234",
"Standard",
"New Block",
"BlockLocking": "false",
"RandomizeQuestions": "false",
"BlockVisibility": "Collapsed"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.