We've just got to grips with GroupMail for managing our mailing list. Among other things, we've changed INVOICEUSERDEFINED to a checkbox as per the AUG, to be used as an indicator as to whether a purchaser wants to subscribe to the email list.
I'd like to make the subscription process automatic from the order process, rather than having to export email addresses manually. GroupMail receives subscription requests via email, so the obvious way to automate it seems to be to get the website to send a subscription email when someone hits (or mouseover's) the 'next' button on order01, if the checkbox is checked. My thinking is
(a) javascript triggered by onclick or onmouseover from the 'next button, which does the 'if' check on the checkbox;
(b) a hidden form containing the email address submitted by Javascript, using FORMMAIL to generate the email.
Problems:
i) how do I get INVOICEEMAIL into the hidden form and INVOICEUSERDEFINED into the javascript
ii) is there anything I should know about putting onclick or onmouseover on the 'NEXTBUTTON' in Order01?
iii) is there anything I should know about the form names, etc on Order01 - it's very difficult to get any idea of the structure from the template!
First attempt stopped the next button working at all, so any pointers (or suggestions on a neater solution) gratefully received!!
Thanks,
Neil
I'd like to make the subscription process automatic from the order process, rather than having to export email addresses manually. GroupMail receives subscription requests via email, so the obvious way to automate it seems to be to get the website to send a subscription email when someone hits (or mouseover's) the 'next' button on order01, if the checkbox is checked. My thinking is
(a) javascript triggered by onclick or onmouseover from the 'next button, which does the 'if' check on the checkbox;
(b) a hidden form containing the email address submitted by Javascript, using FORMMAIL to generate the email.
Problems:
i) how do I get INVOICEEMAIL into the hidden form and INVOICEUSERDEFINED into the javascript
ii) is there anything I should know about putting onclick or onmouseover on the 'NEXTBUTTON' in Order01?
iii) is there anything I should know about the form names, etc on Order01 - it's very difficult to get any idea of the structure from the template!
First attempt stopped the next button working at all, so any pointers (or suggestions on a neater solution) gratefully received!!
Thanks,
Neil
Comment