Actions
Bug #17328
closedform wizard - set checkbox as required - solution
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2007-05-24
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.1
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
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)
Actions