name your radio button "autorespond" and set the value to "PlainTemplate=blue.txt" for blue or "PlainTemplate=red.txt" for red
everything in formmail works with fields, how you generate them is up to you
Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.
Just curious if anyone knows how (if possible) to have the autoresponder send out different emails based on user selections within the form.
Example: What is your favorit color? Blue [ ] Red [ ]
depending on what the user selects a tailored template is used for the autoresponse.
Anyway, hope that is clear.
Thanks a ton!
name your radio button "autorespond" and set the value to "PlainTemplate=blue.txt" for blue or "PlainTemplate=red.txt" for red
everything in formmail works with fields, how you generate them is up to you
That makes sense, but I have two other potential problems. I am using a multiform. How would this work if the determining selection was made on an earlier form? Also, what if I want the field to have an actual value that gets passes on, not just used for the autoresponse.
Thanks for your help!!!
ok, so on the form that has the selection, you call the field "autorespondvalue" (or anything you like)
then, on the last form (before the email gets sent) you do this:
HTML Code:<input type="hidden" name="autorespond" value="$autorespondvalue" />
crabtree,
Thank you so much for your help. I got the function working flawlessly. The only problem I have now is that the selection made value shows up as references to templates in a later page of the form (this is no surprise).
For example. I have a preview page prior to submission and the field in question is "Will you attend" [ ]yes [ ]no. Depending of course on the answer a different email is sent. This is working, however, I would like to somehow display the answer to this question on the preview page without the values showing as Plaintemplate=no_confim.txt etc.... Is there a way around this?
Again thanks for your help, and I hope the above is clear!
Ray
you can build pretty much any field you like with derive_fields
this guide tells you: http://www.tectite.com/fmhowto/derived.php
theres a new feature i havent used called "conditional derivation" - i think its what you need.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks