10663 Posts in 2786 Topics by 1517 members
Jump to:If this is your first visit, you will need to register before you can post. However, you can browse all messages below.
| Page: 1 | go to end | Reply | |
| Author | Topic: Form Help | 159 views |

4 September 2008 at 4:36pm
Been a long day, and I'm sure I'm missing the obvious here but I need some help.
Contact form fields:
In my template, I can produce the fields, but no names/labels for them. The following label shows up blank, but the input is shown. The fields are required, and if you click in the input box and click away without typing anything, I get the error message "Please fill out 'this', it is required." instead of the proper field name, it uses "this". Demo here - http://www.mcgowangroupinc.com/new/contact/
Also, the dropdown field gives the user an option to pick who the email should be sent to. I have this in my doForm() function which sends the email:
No matter which option is picked, it always sends to email 1. I've written the same thing using a switch statement with no luck either. In my email template, the variable $To produces the correct number associated in the drop down.
I'm sure I'm missing something obvious as its been a 12+ hour day.
Last edited: 4 September 2008 at 4:38pm

9 September 2008 at 12:11pm
The first part of my problem is due to using a custom template with the forTemplate() function. If I use a regular template, things are fine obviously. This part isn't to big of a deal and I can handle it later.
However, I'd really like to be able to solve the 2nd part. That is having a contact form with a drop down field so users can choose where the email gets sent to. Has anybody ever done this before that has code working?
My attempt above didn't work.
| 159 views | |||
| go to top | Reply |
textura, Geiri, micahsheets, YellowDuck, motoservo
Welcome to our latest member: dennisouellette