Bug #31332
Checkbox
| Status: | Rejected | Start date: | 2011-10-27 | |
|---|---|---|---|---|
| Priority: | Must have | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | 2.0.0 | |||
| Votes: | 2 (View) |
Description
When filling out a form with checkboxes, the data choosen here is not being sent.
History
Updated by Alexander Grein over 1 year ago
- Status changed from New to Needs Feedback
TYPO3/PHP/Powermail-Versions?
BTW. Did you include the static template(s) ?
If everything is o.k., please try out the latest trunk version.
There are several improvements, specially in the checkbox validation, if javascript ist turned off.
Updated by Emile Blume over 1 year ago
TYPO3, version 4.5.4, PHP 5.4, Powermail 1.6.4.
Yes, the static template was included.
When I downgrade to Powermail 1.6.3 the form works as required.
Updated by Markus Reichert over 1 year ago
Got the same problem. Is there any solution for this problem with Powermail 1.6.4 yet?
Typo3 4.5.7, Powermail 1.6.4, PHP 5.3
Thx
Updated by Sebastien Michel over 1 year ago
Also experiencing this problem with version 1.6.4. There is a workaround (field.checkboxJS = 0) but then it causes serious problems when exporting the data as described here (empty fields are not saved):
http://lists.typo3.org/pipermail/typo3-english/2011-November/077913.html
Hopefully there will be a solution soon!
Regards, Sebastien
Updated by Chris Mueller over 1 year ago
I have the same problem with the latest trunk version of powermail: My checkbox is mandatory which a user has to click (privacy policy has to be accepted). After submitting the form I got the error that that field isn't filled out.
Updated by hwt3 over 1 year ago
I've got the same problem. It works fine with powermail 1.6.4 and TYPO3 4.5.6, but occurs in TYPO3 4.5.8. A downgrade of powermail to 1.5.7 wasn't successfull.
A solution would be important.
Updated by Alexander Grein over 1 year ago
Please try out latest trunk version.
Updated by Chris Mueller over 1 year ago
It doesn't work: I got the latest version from svn. Javascript validation is completely deactivated. No checkbox input is shown in answer page or in the sent email.
Updated by Chris Mueller over 1 year ago
I tracked it down: In Version 1.6.0 the checkboxes are working, with 1.6.1 not.
Updated by Claude Unterleitner over 1 year ago
I tried out the latest trunk version 1.7.0 on 6.1.12. Does not work for me :-( No values are submitted. (T3jquery, jquery 1.6.x, ui 1.8.x, Tools V. 1.2.x). TYPO3 Vers. 4.5.8 and powermail v. 1.6.4 didn't work too. Even plugin.powermail.field.checkboxJS = 1 or = 0 doesn't change anything.
Would be happy to hear news soon, as it would be great to be able to use checkboxes (with validation?) ;-)
Updated by Bjorn Kuipers over 1 year ago
My solution was in the jQuery file ext:powermail/templates/tmpl_frontend.js. It seems the checkbox function on line 76 was not executed:
$('.tx_powermail_pi1_form input:checkbox').click(function() {
$(this).parent().parent().find('input:checkbox').blur();
var checkid = $(this).attr('id');
var valueid = checkid.replace(/check_/, 'value_');
var targetid = checkid.replace(/check_/, '');
$('#' + targetid).val($(this).is(':checked') ? $('#' + valueid).val() : '');
});
I copied that function to my own JS file, put it inside jQuery(document).ready(function(){ ... }); and it worked! Now the form submits the values of checkboxes and sends them in the mail.
Typo3: 4.6.12
PHP: 5.3
Powermail: 1.6.4
Updated by Philipp Kitzberger over 1 year ago
solution is simple: there's just no element with the id #value_uidXXX_0 available. only an element with the name attribute like that.
changing line 81 from
$('#' + targetid).val($(this).is(':checked') ? $('#' + valueid).val() : '');
to
$('#' + targetid).val($(this).is(':checked') ? $('input[name=' + valueid + ']').val() : '');
fixes the problem.
Is jQuery responsible for the markup?
Updated by Stefan Geith about 1 year ago
Same Problem with Typo3 4.5.15 and powermail 1.6.6 (Firefox 10.0.3ESR, Win):
Values of checked checkboxes do not exist in email (nor in Form, if captcha was wrong)
Changed to selectbox (multiple) and all is OK.
Updated by Chris Mueller about 1 year ago
I disabled all javascript code from powermail and didn't receive the checkbox value. This is also bad, if a checkbox is a required field, so the form cannot be send at all.
I tested it with Powermail 1.6.6.
Updated by Alex Kellner about 1 year ago
- Target version set to 2.0.0
Updated by Alex Kellner about 1 year ago
- Status changed from Needs Feedback to Rejected