View source: R/add_answer_option_to_question.R
add_answer_option_to_question | R Documentation |
This is a convenience function that allows you to add an answer option to a question object.
add_answer_option_to_question(question, ...)
question |
The limonaid Question object |
... |
Options that are passed on to the Question's |
The question object.
myQuestion <-
limonaid::Question$new(
code = 'myQuestion',
type='radio'
) |>
add_answer_option_to_question(
code = 1,
optionTexts = "First option"
) |>
add_answer_option_to_question(
code = 2,
optionTexts = "Second option"
);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.