Closed (fixed)
Project:
Webform
Version:
6.3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
20 Nov 2025 at 13:56 UTC
Updated:
24 Feb 2026 at 15:39 UTC
Jump to comment: Most recent
I want to be able to allow users to select a pre-existing paragraph by using a "Select" entity reference field. However pargraphs are not showing up as entity type.
Reason, is this code:
// Entity Reference fields are no longer supported to reference Paragraphs.
// @see paragraphs_form_field_storage_config_edit_form_alter()
$target_type_options = $this->entityTypeRepository->getEntityTypeLabels(TRUE);
unset($target_type_options[(string) $this->t('Content')]['paragraph']);
However, this was changed a while ago #3414495: Change paragraphs_form_field_storage_config_edit_form_alter() to only discourage paragraph target references, not disallow. so there seems to be no reason for webform to disallow it.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
fagoLet's fix this then.
Comment #5
petar_basic commentedComment #6
petar_basic commentedTested MR !778.
Before: Paragraphs not available as entity reference target type.
After: Paragraphs appear in target type options and can be selected/referenced as expected.
Works as intended, code changes look good, marking RTBC.
Comment #7
liam morlandIn what issue/commit was this code added? Before removing that code, we need to understand when it was added and why. Then we can decide whether that reason still applies.
Comment #9
liam morlandReverts commit 49029af9 for #2899556: Paragraphs as Entity Reference in Webform not displaying field values.