Skip to content
This repository was archived by the owner on Jul 3, 2024. It is now read-only.
This repository was archived by the owner on Jul 3, 2024. It is now read-only.

Checkboxes with veriword #9

@chrille38317

Description

@chrille38317

Howdy!

First of all, thank you for keeping up the good work on Evolution CMS and the corresponding Extras.

We stumbled upon a problem with eform, when using veriword in combination with checkboxes, radio buttons and (not tested) option menus.

Here's the snippet call:

[!emailFormUserInfo!]
[!eForm? &eformOnBeforeMailSent=`emailFormUserInfo` &formid=`ContactForm` &subject=`My subject` &to=`you@get.it` &tpl=`emailForm` &report=`emailFormReport` &sendAsText=`1` &from=`you@know.it` &replyto=`email` &thankyou=`37` &gotoid=`37` &cssStyle=`[(site_url)]css/E-Mail.css` &vericode=`1` &debug=`1` !]

Here's the mailform (omg, it's German ;) ):

<form method="post" action="[~[*id*]~]" id="EmailForm" name="EmailForm">
<input name="formid" type="hidden" value="ContactForm" />
[+validationmessage+]
<dl class="mailform">
<dt><label>Anrede*</label></dt>
<dd><input type="radio" name="anrede" value="Frau" id="anrede_frau" tabindex="1000" eform="Anrede::1:#LIST Herrn,Frau" /><label for="anrede_frau"> Frau</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="anrede" value="Herrn" id="anrede_herr" tabindex="1100" /><label for="anrede_herr"> Herr</label></dd>	
<dt><label for="name">Name*</label></dt>
<dd><input class="i" type="text" name="name" id="name" tabindex="1200" maxlength="255" eform="Name::1:" /></dd>
<dt><label for="email">E-Mail-Adresse*</label></dt>
<dd><input class="i" type="text" name="email" id="email" tabindex="1300" maxlength="255" eform="E-Mail-Adresse:email:1" /></dd>
<dt><label for="message">Nachricht*</label></dt>
<dd><textarea name="message" id="message" cols="10" rows="2" tabindex="1400" eform="Nachricht:textarea:1"></textarea></dd>
<dt><label>Anti-Spam-Code</label></dt>
<dd class="ahctpacImg"><img src="[+verimageurl+]" alt="" class="ahctpac" /></dd>
<dt><label for="vericode">Bitte wiederholen Sie den Anti-Spam-Code*</label></dt>
<dd class="ahctpac"><input class="i" type="text" name="vericode" id="vericode" tabindex="1500" maxlength="50" /></dd>
<dd><label for="disclaimer"><input type="checkbox" name="disclaimer" value="1" id="disclaimer" tabindex="1510" eform="Datenschutz::1" /> Durch Klick auf &quot;Formular abschicken&quot; erklären Sie sich damit einverstanden, dass wir Ihre Angaben für die Beantwortung Ihrer Anfrage bzw. Kontaktaufnahme verarbeiten. Eine Weitergabe an Dritte findet nicht statt, sofern wir nicht gesetzlich dazu verpflichtet sind. Wenn wir Ihre Anfrage bearbeitet haben, der Zweck der Speicherung entfallen ist oder wenn Sie Ihre hier erteilte Einwilligung widerrufen, werden Ihre Daten gelöscht. Sie können sich jederzeit über die zu Ihrer Person gespeicherten Daten informieren. Weitere Informationen finden Sie in unser <a href="[~224~]">Datenschutzerklärung</a>.*</label></dd>
<dd><input class="s" type="submit" value="Formular abschicken" tabindex="1600" /></dd>
</dl>
</form>

Debug mode indicates no problem with verification unless the captcha is resolved. Then, the checkbox key/value appears twice, the second pair contains the the value of the captcha. The validation fails, then - even with correct values in all fields.

The form works perfectly, if veriword OR the checkbox is removed. If I change the checkbox into a radio button, the form doesn't work (same error as above). If I transform the checkbox into a text field, the form works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions