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]

CommentFileSizeAuthor
Capture du 2018-02-11 15-03-03.png129.87 KBzenimagine
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zenimagine created an issue. See original summary.

jrockowitz’s picture

Status: Active » Closed (works as designed)

The 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.

zenimagine’s picture

The 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".