#110283Page creation wizard: record selection via TableList buttons (e.g. "Page") is never inserted
Description
Steps to reproduce
- In the page tree, create a new page using the new page creation wizard and choose type “Shortcut”.
- In the “Shortcut Configuration” step (field “Shortcut to page”), click the “Page” button rendered below the field.
- Select a page in the element browser modal.
Observed
The selected page is never inserted into the field, no error is shown. The elementBrowser field control (folder icon next to the delete button) on the very same field works correctly.
Expected
Both buttons insert the selected record, as they do in a regular FormEngine edit form.
Analysis
Buttons rendered by TYPO3\CMS\Backend\Form\FieldWizard\TableList do not set data-use-events, unlike the FieldControl\ElementBrowser control, which sets data-use-events="true".
Without useEvents, element-browser.js delivers the selection through the legacy path: getParent() iterates browser frames to find the window containing form[name="editform"] and sends the result there via postMessage. The new page creation wizard, however, renders its editform directly in the top window inside a Lit modal (PageWizardStepBuilder::buildStep()), not inside any frame. getParent() therefore resolves to the content module iframe, where nothing is listening, and the selection is silently dropped.
With data-use-events="true" the element browser instead dispatches a typo3:element-browser:message CustomEvent on the modal’s frame element, which FormEngine’s delegated .t3js-element-browser click handler listens for — this is why the folder field control works inside the wizard.
Additionally, the TableList <button> has no type attribute, so it acts as a submit button inside the wizard’s editform.
Suggested fix (verified locally against 14.3.5)
--- a/Classes/Form/FieldWizard/TableList.php
+++ b/Classes/Form/FieldWizard/TableList.php
@@ -72,10 +72,12 @@ class TableList extends AbstractNode
} else {
// Initialize attributes
$attributes = [
+ 'type' => 'button',
'class' => 'btn btn-default t3js-element-browser',
'data-mode' => $tableName === 'sys_file' ? 'file' : 'db',
'data-field-reference' => $itemName,
'data-allowed-types' => $tableName,
+ 'data-use-events' => 'true',
];Reviews 2
Files 1
History 24
-
Maike Kiebele changed assigned to Maike Kiebele <span data-processor="relativetime" data-value="2026-08-03T13:27:15+00:00" > 08/03/26, 13:27 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 95076 status
NewUnder Review <span data-processor="relativetime" data-value="2026-08-03T14:54:14+00:00" > 08/03/26, 14:54 </span> -
Gerrit Code Review pushed patch set 1 for 14.3 to change 95298 <span data-processor="relativetime" data-value="2026-08-12T16:27:59+00:00" > 08/12/26, 16:27 </span>
-
Maike Kiebele commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-08-13T07:10:10+00:00" > 08/13/26, 07:10 </span>
Applied in changeset commit:c3a9c58b8fa7c7f79311f7549c1b5f2e9f9832d1.