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.
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
Comment #2
Liam MorlandYou 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.Comment #3
FuXXz CreditAttribution: FuXXz commentedThank 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?
Comment #4
Liam MorlandYou probably need to use tokens in the body of a block or node content. This might help:
https://www.drupal.org/node/1494422
Comment #5
Liam MorlandIf you need more help, please re-open.