Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#853 2010-08-11 10:10:10
Re: zem_contact_reborn 4.0.3.20
but you do get the list you want, when you use <txp:article_custom limit="999" form="optionlist" />
outside the context of the zem_contact_select
-tag?
Offline
#854 2010-08-11 10:42:26
- jacyperks
- New Member
- Registered: 2009-04-16
- Posts: 8
Re: zem_contact_reborn 4.0.3.20
Yes, I moved the custom_article tag outside the Zem_contact_select tag and got exactly what I expected to see – the list of article titles.
Offline
#855 2010-08-11 10:45:57
- jacyperks
- New Member
- Registered: 2009-04-16
- Posts: 8
Re: zem_contact_reborn 4.0.3.20
Ah, that sucks! The site I am working on is a MASSIVE site and I would dread breaking the site of one of my most treasured clients. 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?
Offline
#856 2010-08-11 10:53:45
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
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
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
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
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
- If your values contain commas, you can set the delimiter to something else in the
<txp:zem_contact_select />
tag usingdelimiter="your new delimiter"
.
- 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.
- 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