Project

General

Profile

Actions

Bug #17328

closed

form wizard - set checkbox as required - solution

Added by peter eliades over 17 years ago. Updated over 16 years ago.

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)


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Feature #16713: Validate CheckboxesClosed2006-11-13

Actions
Related to TYPO3 Core - Bug #16401: enhancement of form validation checkClosed2006-07-24

Actions
Actions

Also available in: Atom PDF