What is the correct way to use multiple DIFFERENT webforms for ONE content type? Example is a user submits a project (my content type) which has different requirements depending on project type? There are literally a hundred or so types of projects that can be created, each with its own set of parameters. So it would be much easier to have a different webform for each project type (a field in my content type), than to create a hundred or so different content types.

I tried using Webform/Rules/Webform Rules modules together, but I am somewhat limited how Webform feeds my content type, after node creation it gets even harder to modify those fields.

Comments

VM’s picture

I don't understand the use of webforms for this. You can use a content type with a taxonomy field as a differentiation?

absolutly’s picture

A Taxonomy is fine to categorize the node, yes. But I need a way to gather requirements from the user about their project. A questionaire of sorts. And each questionaire could be different depending on categorization, like through taxonomy. So webforms works to gather this info, using a different webform for each type of project. From what I've done and read, I can only attach a single webform to a single content type or a single webform to all content types I specify. I cannot attach a different webform per node.

VM’s picture

requirements better understood. It seems to me you could to utilizing conditional fields on a single content type and based on those conditions hide/reveal required fields for input?

absolutly’s picture

I hadn't considered the use of conditional fields, so I looked into it briefly. In my case I have 80-100 or so categorization of projects. Each of those has a different questionnaire. Some of the questions are the same but most are different. We are talking 20 questions per category. If I were to use taxonomy with conditional fields, I believe my content type would have possibly hundreds of fields.

I like the "modularity" that webforms gives me. I think I can make this work with webforms, rules and webforms rules modules if I add 20 generic question fields to my project content type. Each question field consists of 2 text entries per field (one for question and one for answer). As the webforms are filled in by the customer, it will feed the rules module to create the entity and programatically fill in each generic question field from the form. And I would have a different rule for each webform. Haven't worked out all the details, but if someone has a better way to do this, PLEASE SHARE!