Closed (fixed)
Project:
Webform
Version:
7.x-4.0-alpha4
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Aug 2012 at 13:21 UTC
Updated:
24 Sep 2012 at 07:51 UTC
Webform 4.0 looks very nice. Great and very userfull new additions.
Thanks so much for these developments!
Encountered a problem today:
I couldn't set a default value from url in an options list (from view and without) working.
Option list:
1|value1
2|value2
...
default value: %get[option]
url: example.com/webform?option=1
But nothing got preselected.
So I tried another simple testcase:
Textfield, default value: %get[text]
url: example.com/webform?text=test
Prefilled value is now litterally: "%get[text]" and not "test"...
Comments
Comment #1
stopbox commentedHaving the same problem, did you find a solution?
Comment #2
Tino commentedHaven't yet...
Comment #3
stopbox commentedThink I worked this one out. You need to install the full Token module (even for D7) and then use:
[current-page:query:text]
for
url: example.com/webform?text=test
Comment #4
quicksketchYep, you got it. This noted in out version 3 to 4 notes: http://drupal.org/node/1609324
Comment #5
Tino commentedThanks! I have Token installed, but couldn't find a token like that on http://drupal.org/node/390482#drupal7tokenslist. Been looking at the wrong place, because the "translation" list on http://drupal.org/node/1609324 is indeed very clear...
Comment #6.0
(not verified) commentedtypos