Postponed
Project:
Webform
Version:
6.3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 May 2025 at 18:05 UTC
Updated:
26 Nov 2025 at 18:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gábor hojtsyComment #3
gábor hojtsyPostponed on #3526637: Make webform blocks fully validatable and thus show as as dynamic component in Experience Builder.
Comment #4
gábor hojtsy@penyaskito tricked XB to allowing the block with the following:
Which is how the block config showed up in XB and the YAML default values storage appeared. Also adding to issue summary.
Comment #5
gábor hojtsyAdded reference to xb transform docs thanks @penyaskito.
Comment #6
penyaskito#3526706: Stop assuming default Field Widget settings suffice — add Field Widget settings support to `experience_builder.generated_field_explicit_input_ux: prop_field_definitions` might be a blocker for this.
Comment #7
gábor hojtsyHow would that be a blocker?
Comment #8
wim leersThat's for Redux-integrated field widgets. See
docs/redux-integrated-field-widgets.md.XB's
blockComponentSourcedoesn't use field widgets for their input UX; it uses block plugins' existing\Drupal\Core\Block\BlockPluginInterface::blockForm().AFAICT this should not need anything else. What exactly is not working?
Comment #9
wim leersNote; there are lots of remaining
@todos forblock-sourced components — gathered this list by grepping https://www.drupal.org/project/experience_builder/issues/3520484#stable for "block":(all stable blockers, not beta blockers).
Generally speaking, we've only scratched the surface with block plugins, because so few are fully validatable in core. You're likely to run into problems unless the block forms are simple at this time.
Comment #10
gábor hojtsy@wimleers: the webform block is a generic block. You configure it by setting the webform name in the autocomplete (where the screenshot says "Contact"). Unfortunately while this autocomplete itself works in XB, the data is not stored. If you click away to a different component, click back, it does not persist. Also, the block is not rendered with the webform name picked, so you still have a component that you can only pick out from the layers tab.
I'll try to create a gif or video but while updating to xb 0.4.0, somehow the webform schema fixes do not seem to apply.
Comment #11
gábor hojtsy@wimleers: video attached. Only schema fixes are applied are #3526637: Make webform blocks fully validatable and thus show as as dynamic component in Experience Builder from the current MR.
Comment #12
gábor hojtsyBTW did not include in the video, but when trying to save the page, there is an error with the "Contact" machine name. So looks like the title is not translated to the machine name with the autocomplete. Why would that be a problem?
Comment #13
gábor hojtsy@gxleano suggested to change the widget to a dropdown instead of an autocomplete. That behaves the same. I can even save it but then it says the tree is broken (and even the undo in the dialog does not work).
Comment #14
gábor hojtsyWoah I figured out that the error in layout was due to the demo design system attempting to use Paragraphs even if its not even installed on the site ONLY if there was a webform :D
It does render now! BUT the selected webform value still does not persist.
However the form does not save any values just redirects to the form's own page. Still the display is a good step :D
Comment #15
gábor hojtsyFixing the demo design system bug at #3532358: Webform handling has implicit dependency on paragraphs, whitescreens to make the webform show up at least :)
Comment #16
gábor hojtsyUpdated issue summary with current problem list and made title more generic given that we have shifted the scope a bit in this issue already :D
Comment #17
bkosborne