if (interactive()) {
library(surveydown)
# Insert a default multiple choice question template
sd_add_question()
# Insert a text input question with custom ID and label
sd_add_question("text", id = "user_email", label = "What is your email address?")
# Insert a slider question template
sd_add_question("slider", id = "satisfaction", label = "How satisfied were you with our service?")
}
Run the code above in your browser using DataLab