Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1291 2013-01-11 23:50:34

gfdesign
Member
From: Argentina
Registered: 2009-04-20
Posts: 401

Re: zem_contact_reborn 4.0.3.20

It’s true. I had forgotten to check XP
It works like a charm :)
Many thanks to Ruud and you, of course.
Have a happy weekend
Cheers

Offline

#1292 2013-01-13 15:06:12

jfp
Member
From: Clamart, France
Registered: 2004-04-02
Posts: 21
Website

Re: zem_contact_reborn 4.0.3.20

Thanks for your help, I found the problem. I tried to use the good form from my other website, to compare what happening. After few tests, I spotted the problem.

This one doesn’t works:

<txp:zem_contact_select label="" list="↓ Select your topic,Custom Font,Font Modification,Lettering and logotype,Workshop,Interview,Simple question,Feedback" />

This one works:

<txp:zem_contact_select label="objet" list="↓ Select your topic,Custom Font,Font Modification,Lettering and logotype,Workshop,Interview,Simple question,Feedback" />

So, an empty label=”“ is the cause of my bug.
Thanks again, specially @uli comment:

Have you entered something in the name attributes, special characters, apostrophes, something that’s not viable for an ID?

Offline

#1293 2013-01-31 11:27:33

heternova
Member
Registered: 2007-01-26
Posts: 14

Re: zem_contact_reborn 4.0.3.20

Hi all,

I have the following form:

<li class="radio"><txp:zem_contact_radio break="" label=" Bitte informieren Sie mich per E-Mail" group="Mailingliste" /></li>
<li><txp:zem_contact_text break="" label="Name" /></li>
<li><txp:zem_contact_text break="" label="Vorname" /></li>
<li><txp:zem_contact_email break="" label="Email" /></li>

<li class="radio"><txp:zem_contact_radio break="" label=" Bitte informieren Sie mich per Briefpost" /></li>
<li><txp:zem_contact_text break="" label="Name" /></li>
<li><txp:zem_contact_text break="" label="Vorname" /></li>
<li><txp:zem_contact_text break="" label="Adresse" /></li>
<li><txp:zem_contact_text break="" label="PLZ" /></li>
<li><txp:zem_contact_text break="" label="Ort" /></li>
<li><txp:zem_contact_text break="" label="Telefon" required="0" /></li>

My problem is that all the required fields are requested to the user. But the behavior should be different, like this: if the user checks the first radio button, only the required field corresponding to the radio button should be required, not all (in this case only “Name”, “Vorname” and “Email”. If the user check the second radio button, only the second group of required fields will be considered.

But at the moment, if a user clicks on the first radio button, he must fill all the required fields, event the one of the second radio button and this makes no sense (if you want to receive the mailing via Email there is no reason to ask the address).

Should I search a javascript solution or someone else has already implemented it on zem_contact_reborn?
Thank you to everybody for the help
Heter

Last edited by heternova (2013-01-31 13:21:05)

Offline

#1294 2013-01-31 13:21:42

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

Re: zem_contact_reborn 4.0.3.20

I think adi_contact does what you need:

submitted field combination check


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

Offline

#1295 2013-01-31 14:46:03

heternova
Member
Registered: 2007-01-26
Posts: 14

Re: zem_contact_reborn 4.0.3.20

Hello Uli,

That’s the second (or third) time you helped me. Many many thanks, it works perfectly!!

Danke!
Heter

Offline

#1296 2013-01-31 20:49:16

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

Re: zem_contact_reborn 4.0.3.20

Glad to hear that, bitte :)

But it’s actually been Adi.


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

Offline

#1297 2013-02-01 01:10:53

Rimfya
Member
Registered: 2007-11-22
Posts: 31

Re: zem_contact_reborn 4.0.3.20

Any reason why this won’t install on 4.5.4?

Edit: Got it, copy/pasted from the ‘gzipped’ version, instead of the other version. Play on.

Last edited by Rimfya (2013-02-01 01:17:26)

Offline

#1298 2013-02-08 09:56:34

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 252
Website

Re: zem_contact_reborn 4.0.3.20

Hello,
I’m getting an error when using a zem_contact_select tag with more than 9 items.
Testing my website on http://localhost/mywebsite/form I get redirected to http://www.localhost.com/mywebsite/form.
Depending on unknown conditions, I also get the ‘loading failed due to some reason’ blank page on Mozilla Firefox.

Thanks for any help

Offline

#1299 2013-02-08 12:02:20

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

^^ it’s unlikely that this is caused by ZCR. Can you post the code you’re using (preferably both the one with less and the one with more than 9 items) and the exact error message you’re getting?

Offline

#1300 2013-02-08 12:59:00

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 252
Website

Re: zem_contact_reborn 4.0.3.20

Hi Ruud,
this is the code

<txp:zem_contact_select name="tipo_contratto" list=",Contratto a tempo determinato,Contratto a tempo indeterminato,Contratto di apprendistato,Contratto di inserimento,Contratto di lavoro a tempo parziale,Contratto di lavoro intermittente,Contratto di lavoro ripartito,Tipologie contrattuali a progetto e occasionali,Cassa integrazione guadagni ordinaria,Cassa integrazione guadagni straordinaria" label="Contratto" />

And this is the error I get, means something like ‘connection was cancelled’.

Thanks!

Offline

#1301 2013-03-24 16:58:44

Logolocos
New Member
Registered: 2012-07-30
Posts: 4

Re: zem_contact_reborn 4.0.3.20

Is it possible to encrypt the mail sent by ZCR by using the zemcontact.submit callback?
I need to encrypt the contents of ZCR $msg variable with gpg.
It’s possible to safely hack ZCR by adding a function ‘encrypt($msg)’ and calling this just before $msg is sent, but I prefer to use the callback if possible.

Offline

#1302 2013-03-24 20:20:13

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

^ not possible using the callback.

Offline

#1303 2013-03-24 22:44:56

Logolocos
New Member
Registered: 2012-07-30
Posts: 4

Re: zem_contact_reborn 4.0.3.20

Thanks for the answer, Ruud :-)

Offline

#1304 2013-03-30 10:27:14

Gallex
Member
Registered: 2006-10-08
Posts: 1,331

Re: zem_contact_reborn 4.0.3.20

why this – {Spam?}… appears into subject field than i receive an email message?

Offline

#1305 2013-03-30 22:53:03

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

@gallex, could be some kind of too strict anti-spam measure on a mail server which modifies the subject line.

Offline

Board footer

Powered by FluxBB