I want, to put webform_actions inside container.

actions_container:
  '#type': container
  actions:
    '#type': webform_actions
    '#title': 'Submit button(s)'
    '#submit__label': 'Send'

I received error

The Submit button(s) (webform_actions) is a root element that can not be used as child to another element

Is it possible to allow webform_actions render inside container, without editing /templates/webform-actions.html.twig
I think it is a nice feature for site builders.

Comments

zniki.ru created an issue. See original summary.

jrockowitz’s picture

jrockowitz’s picture

Status: Active » Needs review
StatusFileSize
new24.79 KB
new410 bytes

I can now see am immediate use-case where someone would want the entire form with the submit button nested in a Details element.

batkor’s picture

Nice! ty jrockowitz!

batkor’s picture

I tested it, and it works for me
Only local images are allowed.

jrockowitz’s picture

Status: Needs review » Fixed

  • jrockowitz committed ffb8107 on 8.x-5.x
    Issue #2940270 by jrockowitz: Render webform_actions inside container
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.