Help on Creating Multiple Review Forms for One Node Type?
| Project: | NodeReview |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
First off, many many thanks to Crell and everyone else who's ever been involved in writing or maintaining nodereview. We're using it with great success thus far in building the first version of collegeBOOM.com . User feedback has led to brainstorming has led to this support/feature request:
Is there a way to create two different "review questionnaires" (forms) for a single node type? Our project involves users creating what are essentially product reviews. We currently use nodereview and CCK fields to allow users create reviews of nodes of select content types. The reviews are a combination of numerical scores and narrative descriptions (hence the nodereview/CCK combo). We might add in some yes/no questions answered via checkbox or radio button fields.
Right now every user fills out the same review questionnaire (form) -- What we'd like is to have two (or more) different review "questionnaires" for each product ... depending on what type of user you self-designate as (based on your age or eye color or favorite cheese or whatever), you get the appropriate questionnaire to review that specific product.
i.e. Joey and Suzy are reviewing product "A." Joey is 99 years old and so gets the "Old person" review form. Suzy is 17 and so gets the "Young person" review form. Both of their reviews wind up associated with product A.
Our Drupal and PHP skills are developing, and we're getting pretty okay at manipulating content templates and .tpl.php files to display results in ways we like, but we can't figure out how to manipulate the form the user sees when creating a review. Our current best idea is to present a kitchen sink form with every question, and ask users to answer only a subset of the questions based on how they self-designate. But we know Drupal (not to mention innerHTML or AJAX or whatever) can do more than that!
We've combed through the various files in the modules, and queried drupal.org and Google in every way we've thought of so far. Actually saw a similar question asked on drupal.ro (I think) but no answers given.
Any help would be super appreciated, of course. We're happy to do the work on our end to make this happen - we just haven't yet figured out how to start.
Thanks!
Noah

#1
i would also love to learn how to do that. please let me know if you came up with an answer