Project

General

Profile

Actions

Bug #18427

closed

Required fields within flexform section elements cause Javascript errors

Added by Jeff Segars over 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2008-03-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If a flexform uses section elements with required fields, a Javascript error is generated as soon as the form is loaded and that flexform cannot be saved.

I believe this is related to changeset 2628, which made significant enhancements to section handling. To see the error in action, check out the Scoring Tab within the pb_survey plugin.

The error message is "document[TBE_EDITOR.formname][elementName] has no properties". Once the required eval is removed, the Javascript errors go away because the code causing the error is no longer executed.

(issue imported from #M7829)


Files

7829_required_check.diff (1.28 KB) 7829_required_check.diff Administrator Admin, 2008-03-11 23:36
0007829.patch (1.55 KB) 0007829.patch Administrator Admin, 2008-03-17 17:58

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #18429: required fields in Flexform are not correct marked with Exclamation SignClosed2008-03-12

Actions
Is duplicate of TYPO3 Core - Bug #18751: JavaScript error in TBE_EDITOR causes login expired dialogClosedOliver Hader2008-05-06

Actions
Actions

Also available in: Atom PDF