Progress | Feature | Implementation |
---|---|---|
Wide variety of question types | sd_question() |
|
Ability to use latest survey results in the survey itself | sd_get_data(db, reactive = TRUE) |
|
Pause database connection | sd_database(ignore = TRUE) |
|
Conditionally display questions | sd_config(show_if = XXX) & sd_config(show_if_custom = XXX) |
|
Conditionally skip to pages | sd_config(skip_if = XXX) & sd_config(skip_if_custom = XXX) |
|
Start survey from a specific page (helpful when editing) | sd_config(start_page = "page_id") |
|
Show all pages at once (helpful for editing or printing out whole survey) | sd_config(show_all_pages = TRUE) |
|
Require specific questions be answered | sd_config(required_questions = c("question_1", "question_2")) |
|
Require all questions be answered | sd_config(all_questions_required = TRUE) |
|
Create a random numeric completion code | Use sd_completion_code() . Store the value with sd_store_value() then display it with sd_output() . |
|
Time stamps recorded for each question and page interaction | Happens by default. | |
Progress bar bar that updates on each question interaction | Happens by default. | |
Customizable progress bar color | In the sd_ui() function, use:barcolor = "#123456" |
|
Customizable progress bar position | In the sd_ui() function, use:barposition = "top" , "bottom" , or "none" |
|
Markdown formatting for options and buttons | Just use markdown on options and buttons. | |
Support for bootstrap themes | In the sd_ui() function, use:theme = “theme_name” |
|
Customizable scss theme file | In the sd_ui() function, use:custom_css = “custom.css” , where “custom.css” is a custom css file. |
|
Pass parameters through the url, e.g. to track user IDs | Insert url parameters with a ? , e.g. mysurvey.shinyapps.io/?id_a=123&id_b=456 then obtain the parameters in the server with sd_get_url_pars() |
|
Redirect users to an external url | Use sd_redirect() |
|
Admin page with password login to preview / download data, pause survey, etc. | sd_config(admin_page = TRUE) , then access with url, e.g. https://mysurvey.shinyapps.io/?admin |
|
Form validation (limit input based on question type) | Happens by default | |
Cookies to store user progress | Happens by default |
Welcome to your first surveydown survey!
We recommend reading the Getting Started page to get a sense of how to use surveydown. The rest of the documentation covers more details on how to use surveydown.