splitbrain / dokuwiki-plugin-bureaucracy

Create forms and generate pages or emails from them
http://www.dokuwiki.org/plugin:bureaucracy
GNU General Public License v2.0
43 stars 46 forks source link

Multiple Choice field #133

Open Braintelligence opened 9 years ago

Braintelligence commented 9 years ago

Hey there,

I'd like to have a multiple choice field for interaction with the data-plugin.

Something like this:

multiple_choice "Spoken languages" "Afrikaans|German|English|Russian"

Then you can pick any number of languages and the output will be like this:

German, English, Russian

Prepared for multiple value fields of the data plugin.

asheenlevrai commented 8 years ago

This would be nice indeed!

SFITCS commented 7 years ago

This is an existing capability using the Bureaucracy and the Structured Data Plugins. e.g.:-

<form>
action template _ members:"@@Member Name@@:start"
Textbox "Member Name"
data_aliastextbox "Languages" _languages
Fieldset
Submit "Create a New Member record"
Thanks "A New Member record has been created"
</form>

Type Alias: language Type: Data Postfix: Valid values: Afrikaans, English, German, Russian

_members/_template.txt

====== @@Member Name@@ ======

---- dataentry members ----

Languages_   : @@Languages@@

----