Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1597 2016-06-27 10:57:55

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

Re: zem_contact_reborn 4.0.3.20

Bloke wrote #299988:

Yes.

nothing changed.
i use same code in an article on other site which hosted on a same server – no problem there.
reinstalled txp in a meantime – no help.

hmm…. ;(

Offline

#1598 2016-07-21 14:45:28

wornout
Member
From: Italy
Registered: 2009-01-20
Posts: 256
Website

Re: zem_contact_reborn 4.0.3.20

I have to make a field required relating to other field.
Does anyone kwon how make it?

Last edited by wornout (2016-07-21 14:45:57)

Offline

#1599 2016-07-21 15:44:48

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

Re: zem_contact_reborn 4.0.3.20

Have a look at adi_contact.


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

Offline

#1600 2016-08-21 11:44:20

Ji31
Member
Registered: 2005-08-24
Posts: 103

Re: zem_contact_reborn 4.0.3.20

Hi, I’m using version 4.0.3.21 and the form is like this:

 <txp:zem_contact to="emailto@test.com" label="">
        <table>
          <tr>
            <td class="label">Email:</td>
            <td>
              <p class="input-text-1">
                <txp:zem_contact_email label="" required="1" break="" />
              </p>
            </td>
          </tr>
          <tr>
            <td class="comment-spacer-1" colspan="2"></td></tr>
          <tr>
            <td class="label">Vaše zpráva:</td>
            <td class="text-area-1"><txp:zem_contact_textarea label="" required="1" break="" /></td>
          </tr>
          <tr>
            <td class="comment-spacer-1" colspan="2"></td></tr>
          <tr>
            <td></td>
            <td>
              <p class="show-all comm-btn">
                <txp:zem_contact_submit label="Odeslat" />
              </p>
            </td>
          </tr>
        </table>
      </txp:zem_contact>

When I fill the form with the email myemail@test.com and message my posted message, I get an error
“my posted message” is not a valid email address.
Why?

Thanks

Offline

#1601 2016-08-21 16:38:07

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

Can you post a link to the form that shows this behaviour?

Offline

#1602 2016-08-21 19:15:56

Ji31
Member
Registered: 2005-08-24
Posts: 103

Re: zem_contact_reborn 4.0.3.20

ruud wrote #300722:

Can you post a link to the form that shows this behaviour?

http://dieta-brno.cz/kontakt

Offline

#1603 2016-08-21 20:47:19

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

Re: zem_contact_reborn 4.0.3.20

The tags you posted aren’t exactly those that build the form: The email field is type text, not email. Try to use zem_contact_email and see if that’s enough to change.


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

Offline

#1604 2016-08-21 20:59:18

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

No, type="text" is normal. The problem is that you set the label attributes to an empty string, but didn’t set the name attribute. If the name attribute is missing, the plugin tries to create a name attribute based on the label, but if that is empty as well, it sets the name to ‘invalid’ and because you then have two form fields with the same name (invalid), you get the effect you’re seeing now.

Offline

#1605 2016-08-22 04:48:01

Ji31
Member
Registered: 2005-08-24
Posts: 103

Re: zem_contact_reborn 4.0.3.20

ruud wrote #300726:

No, type="text" is normal. The problem is that you set the label attributes to an empty string, but didn’t set the name attribute. If the name attribute is missing, the plugin tries to create a name attribute based on the label, but if that is empty as well, it sets the name to ‘invalid’ and because you then have two form fields with the same name (invalid), you get the effect you’re seeing now.

Helped, thanks!

Offline

#1606 2016-09-07 10:31:55

dorka
Member
Registered: 2012-10-04
Posts: 90

Re: zem_contact_reborn 4.0.3.20

Hello,
does someone know how to add a field with date picker to zem_contact_reborn, please? Thanks!

Offline

#1607 2016-09-07 14:17:46

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

Re: zem_contact_reborn 4.0.3.20

Hi Dorka, your question sounds like you wanted to copy an additional HTML field tied to a date picker into a zcr form. Have you tried it the other way round, using a zcr text input, add external sources (datepicker script) and link it up with the zcr form field?

Last edited by uli (2016-09-07 14:18:34)


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

Offline

#1608 2016-09-07 17:31:34

dorka
Member
Registered: 2012-10-04
Posts: 90

Re: zem_contact_reborn 4.0.3.20

Hi Uli! By field I actually ment zcr text input. What I am not realy good at is this external data thing. I spent some time today trying to implement bootstrap datepicker, but I haven’t succeeded yet.
The problem seems to be that when I add the needed data attributes to the zcr tag, the tag does not parse:

 <txp:zem_contact_text type="text" label="" id="datepicker" name="datepicker" />

is OK

 <txp:zem_contact_text type="text" label="" id="datepicker" name="datepicker" data-provide="datepicker" />

stays as written in the page without parsing.

Last edited by dorka (2016-09-07 21:25:37)

Offline

Board footer

Powered by FluxBB