1. Go to Admin -> Surveys. Then create a survey and add the questions.
The Submit Page is the wiki page that the user will be taken to after submitting their survey information. This could be a simple "Thank you" page, or could show a summary of all survey choices.
Survey Types can be:
- select: comma delimited list of values entered in Choices field
- text_field: one line of text
- text_area: multiple lines of text
The Choices field contains a comma delimited list of choices when the Type is select.
Html options are any other valid HTML options for that field and are in Rails format. For instance, for the text_area type, you can use:
:rows => 2
to use 2 rows.
2. To show the survey on a page, use this:
<%= no_cache %>
<%= survey('Two Day') %>
(Example)
3. To show the results use:
<%= no_cache %>
<%= survey_results("Two Day") %>
(Example)