Project

General

Profile

Actions

Bug #16114

closed

Two mailforms on a page cause error on field validation

Added by Alexander Schloegl almost 18 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
Content Rendering
Target version:
-
Start date:
2006-05-02
Due date:
% Done:

100%

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

Description

Recently I had a complaint by a customer who had set some fields in a standard mailform to "required" but evaluation failed and the mail was sent without having been evaluated.

I found out that he had two forms on one page, and typo3 (4.0 btw) gives them the same id (id=mailform) which causes the JavaScript to fail.

As Ernesto Baschny pointed out, this is due to a default TS setting in css_styled_content:
tt_content.mailform.20.formName = mailform
Ernesto suggested the following:
"An easy solution would be to default the provided TS to the "hash-based" id for forms..."

(issue imported from #M3393)

Actions

Also available in: Atom PDF