Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#553 2009-01-18 13:05:45

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

Oliver, have you looked at the mem_form plugin? I think that one can handle file uploads.

Offline

#554 2009-01-18 13:45:12

oliverker
Plugin Author
From: Huddersfield
Registered: 2008-07-14
Posts: 90
Website

Re: zem_contact_reborn 4.0.3.20

ruud wrote:

Oliver, have you looked at the mem_form plugin? I think that one can handle file uploads.

Thanks, looks like something I’ll use, but after having a play with it, Im not sure how to make it work? Do you know of any useful documentation for this or examples.

Offline

#555 2009-02-05 17:58:51

maartenD
Member
From: Warnsveld, The Netherlands
Registered: 2007-12-08
Posts: 47
Website

Re: zem_contact_reborn 4.0.3.20

Hello all,

I hope anybody can tell me if it is possible to show a different form based on a selection made in a <txp:zem_contact_select /> ?

Thanks in advance.


Kind regards,

Maarten

Offline

#556 2009-02-06 17:56:27

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

The elements of the form have to be known server side. You can hide certain fields based on a client-side action, but not remove them.

Offline

#557 2009-02-10 16:39:53

simoin
Member
From: Ireland
Registered: 2009-02-10
Posts: 50
Website

Re: zem_contact_reborn 4.0.3.20

Has anybody included a datepicker or calendar feature with zem contact reborn, I have a contact form that I need to include either a calendar datepicker or a select menu with the current date present.

[Update]

Thanks to visualpeople and Logoleptic, ( see below) I’m going to try Logoleptic’s idea,
as the client is wants the current year and future dates in the select menu,

I’ll report back if I can get it working, thanks for the headstart.

Simon

Last edited by simoin (2009-02-12 14:07:38)

Offline

#558 2009-02-10 17:50:32

visualpeople
Member
From: Corvallis, Oregon - USA
Registered: 2005-11-16
Posts: 73
Website

Re: zem_contact_reborn 4.0.3.20

I’ve never gone so far as to set up a date picker, but we have a site where we need people to tell us when their potential event will be held, we just use this code:

<txp:zem_contact_select label="Date: " list="January,February,March,April,May,June,July,August,September,October,November,December,Not Sure Yet" /> <txp:zem_contact_select label="" list="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31" /> <txp:zem_contact_select label="Year" list="2007,2008,2009" />
<txp:zem_contact_select label="Time of Day:" list="Morning (Before 11:30 a.m.),Noon (11:30 a.m. to 1 p.m.),Afternoon (Between 1 and 4 p.m.),Evening (After 4 p.m.)" />

Seems to work pretty well for this client… I’m sure it could be improved on.

Offline

#559 2009-02-10 17:53:34

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: zem_contact_reborn 4.0.3.20

@Simon: Off the top of my head, it seems like using the txp:variable tag might work for creating a select menu. Wrap the tag around a couple of escaped PHP blocks — one to create a comma-separated list of dates and one to format today’s date in a way that matches your select options. You could then output those variables as attributes of the zem_contact_select tag (use single quotes to enable parsing tags in attributes):

<txp:zem_contact_select list='<txp:variable name="date_list" />' selected='<txp:variable name="today_date" />' />

I haven’t had occasion to use template variables yet myself, so I’m not 100% sure this would work. Seems like a good place to start, though.

Offline

#560 2009-02-10 19:43:59

jnhuval
Member
From: Houston Texas USA
Registered: 2007-01-22
Posts: 30
Website

Re: zem_contact_reborn 4.0.3.20

I’m using zem_contact tags in 4 different visitor message forms each in separate articles. I’ve using a thanks txp form to post some text (thank you your message has been sent) after the visitor submits the message.

I’m having trouble with one form — after submitting the message it returns to a blank message form rather than displaying the thanks message I’m calling with the thanks_form attribute — I’ve even tried the default thanks and a short inline thanks message yet this form reloads a blank form each time without acknowledging the form was sent. Other than the problem with the thanks message, the form works.

I just updated to 4.0.8 — and the forms are working with the thanks_form attribute in 3 of the 4 forms. I’ve checked the tags and formatting — any ideas what I could be missing?

This is how the tag is used — I took out some of the input fields to shorten the code:

<txp:zem_contact to="homevalue@sterlingresidential.com" subject="Sterling Residential Comparable Summary Request" label="" thanks_form="SRR_Contact_Thanks">
.....form elements for input fields go here.....
<txp:zem_contact_submit label="Send Message" />
<txp:zem_contact_serverinfo name="HTTP_USER_AGENT" label="Browser" />
<txp:zem_contact_serverinfo name="REMOTE_ADDR" label="IP" />
</txp:zem_contact>

Offline

#561 2009-02-11 14:45:15

joebaich
Member
From: DC Metro Area and elsewhere
Registered: 2006-09-24
Posts: 507
Website

Re: zem_contact_reborn 4.0.3.20

jnhuval wrote:

I just updated to 4.0.8 — and the forms are working with the thanks_form attribute in 3 of the 4 forms. I’ve checked the tags and formatting — any ideas what I could be missing?

I updated two sites to 4.0.8 a few days ago and subsequently found that the thanks_ form attribute no longer works. The thank you message doesn’t appear as it did with 4.0.6. The message does get transmitted. I haven’t got to the bottom of it yet and will be interested to see what your query turns up.

Offline

#562 2009-02-11 16:04:30

jnhuval
Member
From: Houston Texas USA
Registered: 2007-01-22
Posts: 30
Website

Re: zem_contact_reborn 4.0.3.20

joebaich wrote:

I updated two sites to 4.0.8 a few days ago and subsequently found that the thanks_ form attribute no longer works. The thank you message doesn’t appear as it did with 4.0.6. The message does get transmitted. I haven’t got to the bottom of it yet and will be interested to see what your query turns up.

Thanks — I’ve been going through my forms and editing/removing deprecated attributes to match the more recent documentation — as I’ve done that to each form, the thanks attribute (whether default or specified) no longer works in TXP 4.0.8.

(edit) The email does get transmitted upon sending and the visitor is returned the form (with fields now empty) — but no thanks message is transmitted or displayed upon sending.

Thank you for the reply.

Last edited by jnhuval (2009-02-11 16:27:07)

Offline

#563 2009-02-11 16:20:44

joebaich
Member
From: DC Metro Area and elsewhere
Registered: 2006-09-24
Posts: 507
Website

Re: zem_contact_reborn 4.0.3.20

jnhuval wrote:

the thanks attribute (whether default or specified) no longer works in TXP 4.0.8.

On both my sites, I called up the ZCR tag using a form from within an article so:

notextile. <txp:output_form form="my_contactform" />

Did you do something similar or did you call it from a page or other form?

Offline

#564 2009-02-11 16:44:52

jnhuval
Member
From: Houston Texas USA
Registered: 2007-01-22
Posts: 30
Website

Re: zem_contact_reborn 4.0.3.20

joebaich wrote:

On both my sites, I called up the ZCR tag using a form from within an article. Did you do something similar or did you call it from a page or other form?

My forms are written/coded within an article without using the output_form tag — the top of the article page has some descriptive text followed by the form coding within the article page — so I’m using the write tab when editing my forms. I was using the thanks_form attribute in ZCR to display a specific message upon submittal.

The original forms (before 4.0.8) always worked with “Use Textile” in the article markup — but I haven’t tried without textile to see if I’m getting the same problem with the thanks attribute function.

I’m going to try using your coding to call in the form from within the article to make sure textile isn’t causing the problem and will get back with post later. Thanks.

edit — more info after testing textile

I checked again using notextile. <txp:output_form form="SRR_Contact_CS" /> within the article to load the form and got the same result — the form works and the email is transmitted but the thanks attribute is not functioning whether in default mode or with the attribute thanks=“text” or with the attribute thanks_form=“form”.

Last edited by jnhuval (2009-02-11 17:04:25)

Offline

Board footer

Powered by FluxBB