2
votes

Hello I hope I explain this correctly.

I am trying to populated the current page title in a webform default value field.

I can return node id or name using %nid - The node ID. %title - The node title.

Anyone any idea what I need to key in to populate the current page title??

Thanks in advance

1
I don't think there is a replacement token for the html title. But it usually generated by a pattern; [site-name] | [page-title]. Can't you replicate the pattern? - Neograph734
if i key [page-title] it just displays as this and not actual page title. - nuala bradley
I meant node-title, the one you access by %title, you might have to look up module specific replacement patterns - Neograph734
%title give node title not page title. thanks anyway - nuala bradley
But in most cases page title is defined by a pattern that includes also the node title (like my first example) can't you use a similar pattern? - Neograph734

1 Answers

2
votes

You can use Drupal-style tokens if you upgrade to Webform 4, allowing you to set [current-page:title] as a component value.