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

quicksketch’s picture

Title: Can you have a field within a contetn type which links to Webform » Can you have a field within a content type which links to Webform
Priority: Major » Normal

It'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.

quicksketch’s picture

Status: Active » Closed (fixed)

Closing after lack of activity.