Hello Team,

I have download and install webform-6.x-3.0-beta2 module and it has support for few different type of content type as well. This is very great for this module.

Now my question is like this way. I have created one product and associated webform with product. You can see that in image attached. Now as you can see in image there is a webform and submit button. When i try to add text in text box and click to Add to cart (without clicking on submit button) than it take me to cart but problem is i did not get submission of text box. For that i have to click on submit button and after that it take me to next page.

Is it possible with hook or other option that when i click on Add to Cart than webform text-boxes will get submitted to system directly without clicking on submit button. If it is not possible by this way than can anyone let me know how to do this ? Also i did ask to developer that they take some initiative and create some hook or something to make it work for other content type if possible.

Concept of this improved module is very admirable and innovative. It might be possible that things which i have asked is limited to some content type but if you add this facility than it will be great thing for this module.

Thank you
Tejas Mehta

CommentFileSizeAuthor
#2 question_webform.JPG14.34 KBtejaspmehta

Comments

quicksketch’s picture

This isn't directly possible because the "Add to Cart" button is one form and the Webform form is a different one. If you're trying to report information about the thing that is being purchased, you probably shouldn't be using Webform for that. Instead look into the "Product Node" module, in which you essentially purchase a node that you fill out.

p.s. There's no attached image on your post.

tejaspmehta’s picture

StatusFileSize
new14.34 KB

Hello quicksketch,

Thank you for your reply.
I have attached image once again. Last time also i did but do not know how it did not get attached.
link to image is : http://drupal.org/files/question_webform.JPG

Next is regarding 2 different forms. Yes we know that there are 2 different forms here. Now with help of this new module which is still in beta can we do something like following.

Any content type : product, view, report, page, etc...is associated with webform and when node get displayed (mostly as shown in image i have attached) submit button will be optional. If you do not submit it and only fill data and process on other content type button's submit than it should save data in webform. (Assumption is there is at-least one submit button on page)

I had asked this because sometimes we have scenario when we have to submit first webform and than again add product to cart or go through view or etc.

Also one solution which i found (might be this is early to say solution) for my case is, When webform submitted i will redirect it to same node of product but what i want is that that particular webform should not show up or it will be filled automatically. I have yet not started to work on it but if you can give me some advise/idea than i will surely try it.

Thank you
Tejas Mehta

quicksketch’s picture

Status: Active » Closed (fixed)

For what you're trying to do, you should not be using Webform. I'd definitely recommend Product Node, since that's what we use for registrations of Workshops over at http://store.lullabot.com. However, this isn't a webform question so I'm closing this issue.

jitsnos1’s picture

We are using Webform for selecting products and other user related information. Now we want to integrate webforms with Commerce/cart so that all the procts selected by the user directly go to the users cart. From there user can checkout to place an online commerce order. Is there a way to do this with webform and commerce ?