In webform 3 i could link from another page like this:

/webform?title=test

In my webform i added: %get[title]

So the name TEST was added in the textfield.

This ain't working in Webform 4.

Is there another solutions?

Kind regards.

Comments

danchadwick’s picture

Status: Active » Fixed

First, the %-style tokens were change to the [token:subtoken:subsubtoken] style that is supported by the token module.

Second, the get and post tokens were removed. Webform supplies tokens related to the webform. If you'd like get and post tokens, you can write a small custom module that supplies them, or there may be a contrib modules that does this (I haven't searched).

Best of luck.

mindhunter75’s picture

Thank you DanChadwick,

Too bad it isn't supported anymore.
I will go and search for other solutions.

Thanx again!

hercibadabad’s picture

Hi mindhunter75,

You can use tokens to get keys from the URL.

If your url is something like that: /webform?title=test

You should use [current-page:query:title] instead of %get[title].

mindhunter75’s picture

Hye hercibadabad,

Thank you! It works great!!!

Just what i needed!

Status: Fixed » Closed (fixed)

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