View source: R/survey_module.R
| survey_module_server | R Documentation |
Renders the survey instrument and collects the respondent's answers.
Returns a reactive that holds NULL until the form is submitted, then
returns the response as a named list (one element per visible item).
survey_module_server(id, instrument, on_submit = NULL)
id |
A character string matching the |
instrument |
An |
on_submit |
Optional function of one argument. Called immediately
after submission with the response list. Useful for writing to a
database or sending an email without waiting for an
|
A reactive that returns NULL before submission and the
response list after.
survey_module_ui()
# See survey_module_ui() for a complete example.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.