Posted by umbilu on January 3, 2013 at 8:31am
I need pass node data to webforme.
Anonymous user can send me info about a node products.
But i don't understand how can i do pass node data to webforme.
thanks for help
I need pass node data to webforme.
Anonymous user can send me info about a node products.
But i don't understand how can i do pass node data to webforme.
thanks for help
Comments
Not able to understand exact question
Hi,
I did not understand your query. When we are using webform then there is mailnly two way to use it.
First is, we directly create a node of webform and that itself a form(node of webform content type).
Second is, We choose "Available as block" option from "Advanced settings" for any webform node. It means this node form will be available as a block now and as per requirement we can assign this block to any page or node. You can choose this option from node/%/webform/configure, here % indicated webform node nid.
1. If you are using first approach, then you will get all webform data in $node object, because this form is itself a node.
2. If you are using second approach, then you have different way to handle $node object.
So please you first elaborate your problem, then we can find the solution for this.
Pushpinder Rana
specication
Thank you for your answer.
I have created a cck form of a product.
I would like to put a link in node to the webform that pass the information of the products.
I understand that there are many possibilities but I did a lot of confusion.
I'm using drupal 7 with the display suite module.
I created a link to webfom with field code but does not pass the node information.
what is the best solution?
Thanks for reply
Thanks for your reply.
But still I am not understanding what is your business logic here.
You can simply create a webform in admin and can associate this webform with required content type.
I mean if you have a content type of "products" and you have associated webform with this content type. It means with every node of "products", webform will appear. You can get all data of node with this webform data using menu_get_object. I think you go with this approach.
If this is not your case, then please elaborate your query in more detail.
Like for what is your content type name, what is your webform fields. What relation you want to make between both. Because you should make some relation between content type and webform. Without any relation you can not get any webform data with any node. Either you provide webform as a block or directly associate webform to specific content type.
Pushpinder Rana