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.
create kind of dummy fields in the array with helper_plugin_bureaucracy_field objects, so that the hidden status set by fieldsets are stored for the action'fields' as well.
store the index of the corresponding action'field' also in the array of data that is stored for each action.
if actions are performed after a form is submitted successfully, then check for visibility state of dummy field (founded by index number)
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:
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.