Render a section of form questions from a dataframe for HTML forms If using a markdown document, need to set chunk results to results='asis'
1 | section_html(data = g_questions, section_, css_margin = "margin:1pc 0 1pc 0;")
|
data |
the data to be used. Most often a spreadsheet with sections, id, labels, questions, and responses |
section_ |
the section to be processed into shiny inputs |
css_margin |
= css applied to div of class 'type' which defaults to a top and bottom margin of 1pc, but can be anything. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.