Hello,

first i wish you all a happy Christmas.

I have a node with a link to an Webform. If i click this link i want to autofill one webform field with the node title where i have clicked the webform link. Is this possible?

Greetings

Comments

FuXXz created an issue. See original summary.

Liam Morland’s picture

You can set the default value of a Webform component to [current-page:query:?] which will take the value from the query string. Then make the link have the appropriate query string.

FuXXz’s picture

Thank you for your answer. But I can not make it right.
I made a few attempts, with querys and the links. I can set up static queries like [current-page:one_query] and the URL for Webform http://mysite.com/myform?one_query.

But how can i paste a dynamic node id, or node title in the query?

Liam Morland’s picture

You probably need to use tokens in the body of a block or node content. This might help:

https://www.drupal.org/node/1494422

Liam Morland’s picture

Status: Active » Fixed

If you need more help, please re-open.

Status: Fixed » Closed (fixed)

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