PDA

View Full Version : Conditions: How to send different HTML forms based on form input



bdonnelly
18-Sep-2007, 05:02 PM
I am very new to formmail, but I have played with html forms. My question is about FormMail conditions.

I would like to have formmail send an autoreply to the email on the form, based on the date selected.

The form is for webinar registration and the user can pick one of 6 dates from the date drop-down field. I have a different HTML form for each date. Based on the date selected, I want to send back the correct HTML form to the form submitter.

Do I do this with conditions? How?

russellr
19-Sep-2007, 06:27 AM
Hi,

Well you need to provide an easy option value for each of the dates, such as "1", "2", "3", etc.

Then you use the %if(....)% feature in derive_fields to set the mail_options to specify the right HTMLTemplate value.

It's not hard to do if you're careful and take it a step at a time.

marty
19-Oct-2007, 03:06 PM
Can you put an example of specific code for this?

russellr
22-Oct-2007, 01:07 AM
Hi,

I think if you search the forums you'll find some examples.

But, if you'd like specific help, please subscribe for support and I'll be glad to assist you with your specific requirements.