As you probably know there are about a zillion topics concerning the everlasting pain of the node title not being filled out in a Webform block.

There's some tacky solution out there, but I wondered if the Webform Patched module doesn't provide a clean way to this? In fact, that was what I thought when reading the description of the module on the project page (thought it would supply a node title-token).

Am I missing something or did I misinterpret the description?

(Probably the second...)

Comments

fizk’s picture

Status: Active » Closed (fixed)
fizk’s picture

By the way, the node title shows up fine for me in a webform block using %title.

fizk’s picture

If you're looking for the page title or page URL, try [current-page:title] and [current-page:url].

knalstaaf’s picture

[current-page:title] as default value in a hidden field works like a charm. And so does [node:title] in the e-mail subject.

Brilliant! Thank you.

This module pops out the cork of a bottleneck that has been around for years!

s1work’s picture

Do clean URL's need to be on in order for this to work?

Because I can't get this to work at all. Every time I submit the form from a block, I get the webform's title and not the title of the page the form block is on.

knalstaaf’s picture

Clean urls are not necessary AFAIK. Are you sure you're using the proper token (and is the Token module enabled)?

s1work’s picture

I've used all different kinds of tokens, but to no avail.

Yes, token module is enabled.

s1work’s picture

Issue summary: View changes

search query

drein’s picture

Me too, I obtain always the title of the base webform.
I'm using webform patched 3.19, not the dev.
The only way I can have the url of the page is with the %server variables.
The block is configured to be displayed only on some pages, not in all pages, perhaps is that?
very strange!