I've been racking my brain with tokens, prepopulate, webforms, and trying to embed them in the product with the subject prefilled with information about the product.
I've finally been able to embed the contact form, but I cannot get product specific information to fill the subject line.
What I REALLY would like is to have a link on the product page that sends me to my site wide contact form with the subject filled in from information from the product.
This is the best that I can do so far.
../contact?edit[subject]=This will go into the subject line
Of course this forces the subject line to the specified text. How can I get something like my product fields to show up?
Prepopulate??? I've enabled it, but nowhere on this green earth has anyone mentioned how to use it.
I've read about webforms being able to do this, but it seems you have to set up and configure a webform for each individual product. Too tedious.
Any help would be greatly appreciated!
Comments
I'm still not having any
I'm still not having any luck. :(
Bump for good measure. ;)
Bump for good measure. ;)
...
i have no clue, but was trying to do a similar thing recently - except to populate based on a specific image in an image gallery that the contact was initiated from.
i looked around only very briefly, but could not find a way to do it. i assume somehow you need to populate the subject field in a webform with a node title or some other token, but i have no idea if or how to do that.
so i'm of no help, but i'm interested to see if a solution is found.
----
oh, and if it's any consolation, you're not alone having no idea what prepopulate does. here's a post i put in their issue queue that might give you a better idea. http://drupal.org/node/621680. it is definitely not relevant for your current issue. completely different purpose.
Subscibing, interested in
Subscibing, interested in getting node-title in webform also.
greetings, Martijn
Hey, The way i did this is in
Hey,
The way i did this is in my custom node template (you can use contemplate) I added a link to my page (in your case your product page)
The url points to my form page (my report listing form) and at the end of that URL I added the node title that i am linking it from (in your case the product name) and in the default value of the field that i want to prepopulate, i entered %get[title]
And BAM... works like a charm.
It doesn't work..Please help me
I made the same link page as you have described but it doesn't even show the webform. And the URL shows something like this(the path of my webform is coincidently also node/23):
<?php%20global%20$base_url;%20print%20$base_url.'/node/23?title='.$node->title;%20?>Do you have any idea what to do?? Please help me out. I've been spending all my time to get it work...
I have this in my node.tpl
I have this in my node.tpl file.
$nid=arg(1);
$node=node_load($nid);
$subject = $node->title;
$vin=$node->field_vin[0]['value'];
$year=$node->field_year[0]['value'];
$make=$node->field_make[0]['value'];
$model=$node->field_model[0]['value'];
print l("Click here to email us about this motorcycle!",'contact', array('query'=>"subject=Website Inquiry: $year $make $model vin: $vin"));