Email Contact Form with conditions

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
User avatar
Kosse
Posts: 1066
Joined: Thu 9. Sep 2004, 12:08
Location: Brussels, Belgium
Contact:

Email Contact Form with conditions

Post by Kosse »

Hi all,
is there any possibility to have in the Form CONTENT PART something like this?

A user has to give his
- name (required)
- surname (required)
- age (not required)
- email (required)
And he can also add
- favourite colour... (option)

So in my last field (template form to send to me + copy to user)
I would have something like:

Code: Select all

Dear Mr {name} {surname},
You are {age} years old
Your email is {email}
Your favourite colour is ...{colour}
Till there all fine, now can I add a 'hidden' field (I know I can add hidden field, but with 'conditions' :?: :? ... that would display
Your favourite colour is{colour}
ONLY if the user has answered his favourite colour? If not, not only will {colour} not be displayed but neither will Your favourite colour is...

Cheers
Post Reply