Would be great to be able to use the tokens available on the "Default value" field in the "View arguments" field. This would allow us to build forms using, for example, get variables, which would make this module much more powerful.

Comments

open social’s picture

I did it, trying to make a patch now

open social’s picture

StatusFileSize
new652 bytes

Made it, it was my first via git, so let me know if it works!

phyadmin’s picture

It should be noted that the patch must be applied to the dev version, as the "release" version has not been updated in quite sometime. :/

The provided patch seems to work, in that it successfully pulls the right nodes from the views. Make sure that you run a Drupal database update (update.php) after upgrading from the "release" version to the dev version, however, or it will not work right (the title will be blank)

johnnydigit’s picture

I'm not sure if this is only because I've modified the code to use more than just node views, or maybe because I'm using a variant of the %value token, but I ran into problems when viewing completed forms once I started using tokens in arguments. I had to put in a fail over to query the view again without arguments if no data was returned, and add a flag not to use the fail over when actually rendering the form for input.

I'm going through the webform module now to see where I need to add dummy filter calls to initialize the token values.