Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I added the webform block on my pages. When I configure the block, there is no token available to replace the title of the block with the title of the webform.
Can you add this token?
[webform:title]
Comment | File | Size | Author |
---|---|---|---|
Capture du 2018-02-11 15-03-03.png | 129.87 KB | zenimagine |
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedThe issue is that a block's title is not aware of the current request's webform and therefore can't use its tokens.
This is something that would have to be fixed using custom code where you would use hook_form_block_form_alter() and then preprocess the block and replace the [webform:title] token.
This would be a useful recipe to share with other developers.
Comment #3
zenimagine CreditAttribution: zenimagine commentedThe best would be to create a block views of webform but this is not possible even by installing the module "https://www.drupal.org/project/webform_views".