#16114Two mailforms on a page cause error on field validation
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)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.