Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#856 2010-08-11 10:53:45

funtoosh
Member
From: Münster, Germany
Registered: 2006-10-09
Posts: 153
Website

Re: zem_contact_reborn 4.0.3.20

jacyperks schrieb:

Is there no work around then by coding the select field in HTML and then getting the field to be read with the rest of the form on submit?

your code looks pretty correct, this should work, maybe there is just a typo in there … make sure there are no typographical instead of "
btw, are there commas in the titles? can you post the rest of the form code?

Last edited by funtoosh (2010-08-11 10:55:46)

Offline

#857 2010-08-11 13:39:56

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: zem_contact_reborn 4.0.3.20

There is asy_wondertag for nesting tags prior to 4.07.

Obviously you have to do what’s best for your client, but if it helps . . .

I think I recall correctly that 4.06 and 4.07 were pretty easy upgrades. There are threads out there that chronicle any problems people had and how they were fixed. (Likewise with 4.2.0) Unless you’ve customized the site extensively, with some back ground prep you can probably get to 4.07 without breaking anything or very few things and have it fixed quickly.

(smd_where_used is great when needing to update large sites, or even small ones!)

Even 4.2.0 isn’t scary with some prep work. Bugs, security features, a lot of great plugins need the later versions. Biggest issue is updating a handful of plugins. A couple have to be fixed fixed manually. The code is in the threads.

fwiw

Offline

#858 2010-08-16 05:44:45

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: zem_contact_reborn 4.0.3.20

I’ve read this thread a few years ago to around page 60 – now I’ve just read it backwards from 87 to 60 and I haven’t found anything about using javascript lightbox type windows for thank you messages, errors or even displaying and submitting the form in.

I’ve tried a few, but I actually needed info from the article in order to send the emails…. I suppose I could do it inline (that’s what I have at the minute anyway) – but I would have to use an iframe for the submit to work and keep the window open.

Has anyone done anything with javascript lightbox type windows with zem contact reborn?

Offline

#859 2010-08-16 09:17:04

funtoosh
Member
From: Münster, Germany
Registered: 2006-10-09
Posts: 153
Website

Re: zem_contact_reborn 4.0.3.20

tye schrieb:

I’ve read this thread a few years ago to around page 60 – now I’ve just read it backwards from 87 to 60

wow ;-}

tye, you don’t need to use iframes, there are lightbox clones that can display DIVs that are hidden on the page. i think that would be the easiest way to combine lightboxes & ZCR. needs a bit of tweaking though.

Offline

#860 2010-08-16 10:06:15

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: zem_contact_reborn 4.0.3.20

Well – thats what I am trying to find out – how to submit a ZCR form in a modal (?) window and displaying the thanks_form… iframe is the only way I can think of at the mo.

What would need tweaking? I already have my forms in divs on the page at the mo using a jquery toggle

Offline

#861 2010-09-17 13:40:28

Enor
Member
From: London, UK
Registered: 2010-09-02
Posts: 26

Re: zem_contact_reborn 4.0.3.20

Hi

A few questions….
1. Is there a way to make this plugin only validate certain options and not all by default?
2. How do you escape characters? As my drop down form is placing the prices on new lines as they have a comma.
3. Is there a way to remove “Contact” as looking at my source code the plugin adds this title within my <legend> tags?

I currently have a form called “contact_form”:

<txp:zem_contact_text label=“Name” />
<txp:zem_contact_email />
<txp:zem_contact_text label=“Telephone” />
<txp:zem_contact_text label=“Company” />
<txp:zem_contact_select label=“Project Type” list=”,Web Design and Development,Website redesign,Outsourced Front End Development,Email Marketing,Other” />
<txp:zem_contact_select label=“Project Budget” list=”,under £2000,£2,000 – £5,000,£5,000 – £10,000,£10,000 – £20,000,over £20,000” />
<txp:zem_contact_textarea label=“Project Description” />
<txp:zem_contact_submit label=“Send” />

Offline

#862 2010-09-17 13:56:44

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: zem_contact_reborn 4.0.3.20

  1. If your values contain commas, you can set the delimiter to something else in the <txp:zem_contact_select /> tag using delimiter="your new delimiter".
  1. Add label="" in the <txp:zem_contact> tag.

BTW, the plugin help lists all tags and their available attributes ;)

Offline

#863 2010-09-17 14:07:46

fbox
Member
From: Melbourne
Registered: 2006-02-18
Posts: 42

Re: zem_contact_reborn 4.0.3.20

and… #1 If by validate you mean require the field to be populated in order to accept the submission, you can turn this on or off for each field by including required=“0” or required=“1”. By default it will be 1 (on and required).

Els… you always beat me to it!

– L.

Offline

#864 2010-09-17 14:32:12

Enor
Member
From: London, UK
Registered: 2010-09-02
Posts: 26

Re: zem_contact_reborn 4.0.3.20

Hi

Thanks for your replies.

  1. worked for me, but when I tried your solution for #1 it removed Name (and input field) from the form when I refreshed the page:

This is what I have now:

<txp:zem_contact_text label=“Name required=“0” />
<txp:zem_contact_email />
<txp:zem_contact_text label=“Telephone” />
<txp:zem_contact_text label=“Company” />
<txp:zem_contact_select label=“Project Type” list=”,Web Design and Development,Website redesign,Outsourced Front End Development,Email Marketing,Other” />
<txp:zem_contact_select label=“Project Budget” list=”,under £2000 £2000 – £5000” />
<txp:zem_contact_textarea label=“Brief Description” />
<txp:zem_contact_submit label=“Send Enquiry” />

Also for #2 yes adding a space works but I would like my drop down list to display the values like:

> under £2000
> £2,000 – £5,000
> £5,000 – £10,000
> £10,000 – £20,000
> over £20,000

So would need a way to allow commas in without the form wanting to break the prices (where it sees a comma) onto new lines.

Offline

#865 2010-09-17 14:54:55

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: zem_contact_reborn 4.0.3.20

Enor wrote:

Also for #2 yes adding a space works

Where did I say that??

So would need a way to allow commas in without the form wanting to break the prices (where it sees a comma) onto new lines.

New try:

<txp:zem_contact_select label="Project Budget" delimiter=";" list=";under £2000;£2,000 - £5,000;£5,000 - £10,000;£10,000 - £20,000;over £20,000" />

Offline

#866 2010-09-17 14:57:33

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: zem_contact_reborn 4.0.3.20

Enor wrote:

when I tried your solution for #1 it removed Name (and input field) from the form when I refreshed the page:

This is what I have now:

<txp:zem_contact_text label="Name required=“0” />

You forgot the closing quotes here: label="Name

Offline

#867 2010-09-17 15:30:51

Enor
Member
From: London, UK
Registered: 2010-09-02
Posts: 26

Re: zem_contact_reborn 4.0.3.20

Hi Els

I tried that and it worked:

<txp:zem_contact_text label=“Name” required=“0” /> <txp:zem_contact_email />
<txp:zem_contact_text label=“Telephone” required=“0” />
<txp:zem_contact_text label=“Company” />
<txp:zem_contact_select label=“Project Type” list=”,Web Design and Development,Website redesign,Outsourced Front End Development,Email Marketing,Other” />
<txp:zem_contact_select label=“Project Budget” list=”,under £2000 £2000 – £5000” />
<txp:zem_contact_textarea label=“Brief Description” />
<txp:zem_contact_submit label=“Send Enquiry” />

But when I refresh my page, I get at the top some Textpattern error messages:

Tag error: <txp:zem_contact_text label=“Name” required=“0” /> -> Textpattern Warning: Attribute values must be quoted on line 984
Tag error: <txp:zem_contact_text label=“Telephone” required=“0” /> -> Textpattern Warning: Attribute values must be quoted on line 984

Offline

#868 2010-09-17 15:39:23

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,316

Re: zem_contact_reborn 4.0.3.20

I can’t see a quote error, aside from using curly quotes, maybe? Please, post blocks of code with a preceding bc.. (note the space after the dots) so we can better judge quotation errors.

Last edited by uli (2010-09-17 15:40:46)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#869 2010-09-17 15:55:21

Enor
Member
From: London, UK
Registered: 2010-09-02
Posts: 26

Re: zem_contact_reborn 4.0.3.20

Hi Uli

Found out what the issue was, I copied and pasted the example to use – #3. Add label=”“ in the <txp:zem_contact> tag – which was posted earlier, but I then had a closer look and noticed that the quotes needed to be manually typed in.

Error gone now :)

By the way do you know how to achieve this display for my drop down options:

> under £2000
> £2,000 – £5,000
> £5,000 – £10,000
> £10,000 – £20,000
> over £20,000

I posted it already. Is there a way to escape the comma as I need it for my pricing.

Offline

#870 2010-09-17 16:46:04

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

Re: zem_contact_reborn 4.0.3.20

Enor, read the response that Els gave you, because that question was already answered.

Offline

Board footer

Powered by FluxBB