Update docstring
This commit is contained in:
parent
9a05b95337
commit
b45354bd01
1 changed files with 12 additions and 2 deletions
|
@ -117,11 +117,21 @@ contain the keys :ask, :group, and :choices. The first element of :choices
|
||||||
should be a keyword specifying the type of input elements (e.g. :radio),
|
should be a keyword specifying the type of input elements (e.g. :radio),
|
||||||
followed by a list of answer options.
|
followed by a list of answer options.
|
||||||
|
|
||||||
Example:
|
Example 1:
|
||||||
(questionnaire \"/submit\"
|
(questionnaire \"/submit\"
|
||||||
(:ask \"How old are you?\"
|
(:ask \"How old are you?\"
|
||||||
:group \"age\"
|
:group \"age\"
|
||||||
:choices (:radio \"18-24\" \"25-34\" \"35-44\")))"
|
:choices (:radio \"18-24\" \"25-34\" \"35-44\")))
|
||||||
|
Example 2:
|
||||||
|
(questionnaire \"/submit\"
|
||||||
|
(:ask \"How old are you?\"
|
||||||
|
:group \"age\"
|
||||||
|
:choices (:single \"18-24\" \"25-34\" \"35-44\")))
|
||||||
|
Example 3:
|
||||||
|
(questionnaire \"/submit\"
|
||||||
|
(:ask \"Which social media platforms do you use regularly?\"
|
||||||
|
:group \"age\"
|
||||||
|
:choices (:multiple \"Facebook\" \"Twitter\" \"Instagram\" \"LinkedIn\" \"TikTok\" \"Snapchat\")))"
|
||||||
`(spinneret:with-html
|
`(spinneret:with-html
|
||||||
(:form :action ,action
|
(:form :action ,action
|
||||||
:method "post"
|
:method "post"
|
||||||
|
|
Loading…
Add table
Reference in a new issue