Issue Bug Resolved

#110283Page creation wizard: record selection via TableList buttons (e.g. "Page") is never inserted

Emanuell Ademi 07/24/26, 09:12 updated 08/13/26, 07:10

Description

Steps to reproduce

  1. In the page tree, create a new page using the new page creation wizard and choose type “Shortcut”.
  2. In the “Shortcut Configuration” step (field “Shortcut to page”), click the “Page” button rendered below the field.
  3. 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

  1. Maike Kiebele commented and changed status Under Review Resolved done 0 % 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.