Issue Bug Closed

#17328form wizard - set checkbox as required - solution

peter eliades 05/24/07, 14:57 updated 06/27/08, 10:52

Description

Hi all,
there is not possible to make checkbox required in the TYPO3 form wizard.

Solution (3 steps):
1. typo3/sysext.cms/tslib/class.tslib_content.php – Line 1946
- old: if ($confData[‘required’] && $confData[‘type’]!=‘check’)
- new: if ($confData[‘required’])
2. t3lib/jsfunc.validateform.js – Line 102
- add following 3 lines:
case checkbox value = fObj.checked;
break;
3. typo3/wizard_forms.php – Line 444
old: if (!t3lib_div::inList(‘check,hidden,submit,label’,$confData[‘type’]))
new: if (!t3lib_div::inList(‘hidden,submit,label’,$confData[‘type’]))

Line numbers can be different, depending on the TYPO3 version.

Can you maybe update the next version of TYPO3?
That would be great!
(issue imported from #M5675)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.