Closed (fixed)
Project:
Webform
Version:
7.x-4.0-alpha3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Jul 2012 at 01:27 UTC
Updated:
18 Jun 2013 at 00:09 UTC
Where "25" is the node number. This token does the job I wanted but the instructions say that the argument just returns "0123" (the node number) but I get "node,0123"
This might or might not be a bug. Not sure, since I am new to Drupal.
But I really wanted to thank you for SUCH AN AMAZING MODULE!! So glad that I can finally integrate the Profile2 tokens in webforms. I will wait until you fix the same page conditionals, but in the meanwhile, thank you so much!
Thanks,
PJ
Comments
Comment #1
quicksketchThe contents of the tokens are outside the control of Webform (other than the [submission:*] tokens). The Token module provides [current-page:url:args]. As far as I can tell, the comma-separate value of "node,0123" looks like it's the intended functionality described in the code, but maybe the description in the Token help is incorrect. I *think* you can use
[current-page:url:args:value:1]to get the NID out of the URL, but I'm not sure. As a different approach, this issue looks like it might help in your situation, but it's not completed: #919760: Add a [current-page:object:?] dynamic token.Comment #2
quicksketchOther candidates:
The second one looks easiest but is described as being deprecated and probably won't work forever.
Comment #3
quicksketchClosing after lack of activity.