Closed (fixed)
Project:
Webform
Version:
7.x-3.18
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
17 Oct 2012 at 12:59 UTC
Updated:
18 Jun 2013 at 02:42 UTC
I have developed an estate agents webform and the system owner has requested that when they select a field entitled 'Home Report' that this then populates a webform whereby it pulls through the node id. Can anyone advise if this can be done and if so how easy is it to implement. I have exhausted all avenues within the content type to see if i can link it but been unsuccessful. An example off what i am trying to achieve is on clicking the home report link on this page http://www.stuartandstuart.co.uk/details&pid=416
Apologies if i have posted to the wrong Project
Comments
Comment #1
quicksketchIt's not clear if you're having trouble prepopulating the field (as described in http://drupal.org/node/296453) or just linking to the Webform. Essentially you just need your link to include the current NID as a query string, such as node/x?nid=y, where "x" is the Webform NID and "y" is the current node that you want to be referenced in the form. I don't know of a way to manipulate the display to include the current NID in the Webform without additional modules, but with modules you can probably accomplish this with Custom Formatters. I generally tend to use the theme layer to make adjustments like this by theming the node.tpl.php or the individual field template. Or in Views you can use the Rewrite Results checkbox to construct links, but that approach probably isn't applicable here.
Comment #2
quicksketchClosing after lack of activity.