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 47 forks source link

Feature wish: dependent mail action #78

Open hutchwilco opened 11 years ago

hutchwilco commented 11 years ago

I would like a form user to check a box to also have the form data sent to a specific email on top of the standard pagemod action. I'd describe this as a "dependent mail action" as the mail action is dependent on the yesno check box. Something like:

<form>
action pagemod _self register

Fieldset "Drawing Register"
Textbox  "Description" 
user  "Author"
Number   "Drawing No." ++

yesno     "Send email of this data?"
fieldset  "Email" "Send email of this data?"
action mail "myemail@email.com"
submit "Submit"

</form>

Anyone have the same need or advice on how to implement this? I would also like to be able to format the email but that's another topic.

Klap-in commented 10 years ago

Composing your own template for the mail action is possible since #109

Klap-in commented 8 years ago

Maybe a solution direction for this is: