Update docstring

This commit is contained in:
Marcus Kammer 2023-09-04 21:29:10 +02:00
parent 9a05b95337
commit b45354bd01
Signed by: marcuskammer
GPG key ID: C374817BE285268F

View file

@ -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"