Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-02-18 12:21:59

manncj
Member
From: Buckinghamshire, England
Registered: 2007-10-23
Posts: 48
Website

zem_contact

I am using the zem_contact plugin to create a contact form. I would lie to use a combo box with different subjects for the user to select and then that to determin who the email is sent to and the subject of the email.
Is this possible??? If so can someone suggest how please???
Many thanks and kind regards
Chris Mann

I attach the current code:

<div class=“theform”> <
txp:zem_contact to=“xyz@ndmtennis.co.uk , abc@ndmtennis.co.uk” copysender=“yes” subject=“Enquiry from NMT Coaching Services Website”> <p><txp:zem_contact_text label=“Your name” size=“40” /></p> <p><txp:zem_contact_email size=“50” /></p> <p><txp:zem_contact_text label=“Contact telephone number” size=“40” /></p> <p> <txp:zem_contact_select label=“Topic” list=”,Group Coaching Maidenhead LTC,Group Coaching Burnham TA,Summer Holiday Tennis Camps,Mini Tennis Coaching at local primary schools,Club Futures Squads,Individual Coaching,Racket Repairs and Sales,Membership MLTC,Membership BTA, Technical Support” /> </p> <p><txp:zem_contact_textarea label=“Message” rows=“10” cols=“50” /></p> <p><txp:zem_contact_serverinfo name=“REMOTE_ADDR” label=“IP” /> <txp:zem_contact_submit label=“Send” /> </p> </txp:zem_contact> </div>

</div>

Offline

#2 2008-03-01 10:50:21

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact

Use zem_contact_reborn instead, in the plugin help (on the plugins tab) you’ll find an example that resembles what you’re trying to do (perhaps even exactly what you want).

Offline

#3 2008-03-01 11:00:56

manncj
Member
From: Buckinghamshire, England
Registered: 2007-10-23
Posts: 48
Website

Re: zem_contact

Thanks for your reply
not quite sure where all they have done is used a combo box and written the department names in.
I would like to further that and route the value selected in the combo box to an email address for each department
Any ideas?

Offline

#4 2008-03-01 12:43:51

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact

I was referring to this example in the plugin help, which does exactly that.

Offline

#5 2008-03-01 14:42:14

manncj
Member
From: Buckinghamshire, England
Registered: 2007-10-23
Posts: 48
Website

Re: zem_contact

thank you ever so much its now working perfectly!!!
just now got to edit the style of the form

Offline

#6 2008-03-01 15:13:29

manncj
Member
From: Buckinghamshire, England
Registered: 2007-10-23
Posts: 48
Website

Re: zem_contact

have you got any ideas how i can remove the border and the title contact from the form?
http://www.ndmtennis.co.uk/contact-us/

Offline

#7 2008-03-01 15:34:50

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact

Your website is down (database unavailable), but you can probably do that by setting the label attribute to an empty string for the zem_contact tag.

Offline

#8 2008-03-03 14:32:29

manncj
Member
From: Buckinghamshire, England
Registered: 2007-10-23
Posts: 48
Website

Re: zem_contact

why does it do that – database unavailable???
im really struggling to format this contact form
do i do it in the css?
I particularly want to remove the word contact, get rid of the border and make the response boxes the same width
is there any advice you can give me?
http://www.ndmtennis.co.uk/contact-us/

Offline

#9 2008-03-03 15:59:56

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact

Styling can be done with CSS.
Removing the border and label is done by setting label="" in the zem_contact tag.
Database unavailable is not related to this plugin.

Offline

#10 2008-03-03 17:04:46

manncj
Member
From: Buckinghamshire, England
Registered: 2007-10-23
Posts: 48
Website

Re: zem_contact

any advice on how to actually style it?

Offline

#11 2008-03-03 17:31:17

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact

See the plugin help for advice on what to use for styling.
You can find various CSS tutorials online. If you want fixed width, you can set width for the desired elements in CSS.

Offline

#12 2009-03-03 11:47:03

manncj
Member
From: Buckinghamshire, England
Registered: 2007-10-23
Posts: 48
Website

Re: zem_contact

Is there any way of removing the label next to a field?
is there anyway of adding additional text to the email that is generated as well as customising the email sent?

Offline

Board footer

Powered by FluxBB