Bug #17083
closedno alternative default value possible in checkboxes
0%
Description
It's not possible to set a a value in a FORM checkbox.
The value field is used for making it checked=checked.
But sometimes it's neccesary to submit an value in a checkbox even if it has a name set.
It's defined in class.tslib_content.php:
01753 // alternative default value:
01754 $default = $this->getFieldDefaultValue($conf['noValueInsert'], $confData['fieldname'], trim($parts2));
01755 $checked = $default ? ' checked="checked"' : '';
01756 $fieldCode=sprintf('<input type="checkbox" value="%s" name="%s"'.$elementIdAttribute.'%s'.$addParams.' />',
01757 1, $confData['fieldname'], $checked);
The value is set to 1 by default.
(issue imported from #M5141)
Updated by Alexander Opitz over 11 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
0) - TYPO3 Version set to 4.0
As this report is very old, is the handling in newer TYPO3 CMS Versions (like 6.0/6.1) more like you expect it?
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
No feedback for over 90 days.