Drupal WebForm with CCK content types. For anonymous users.

Posted by thepearson on Stack Overflow See other posts from Stack Overflow or by thepearson
Published on 2011-02-22T23:24:00Z Indexed on 2011/02/22 23:25 UTC
Read the original article Hit count: 246

Filed under:
|
|

I am probably asking a noob question... however:

I have a Drupal site that the customer has a web form where anonymous users can fill in to order some posters (there is 3 to choose from). These are free and at the moment they user just states in the body of a textarea what posters they want.

The site owner wants to now add more posters and now wants the ability to have each poster listed in the web form with a field for quantity next to them.

When the web for is submitted it will post the node title and quantity to the web form along with the required information.

I have researched using UC but it's too much of a eCom solution for such a simple requirement. I also looked at SimpleCart, Flag and Session favorites, all of which aren't really what I need.

So I am looking for a simple way to itterate over all the "Poster" content types, and display them on the webform page with a quantity numerical field to be submitted with the web form for each poster.

Currently I have:

CCK Poster

  • Title
  • Image

WebForm OrderPoster

  • Name
  • Email
  • Address
  • Details

What I am looking for is a page that does the following:

WebForm OrderPosters:

  • Poster 1 [form qty text input for poster 1]
  • Poster 2 [form qty text input for poster 2]
  • Poster 3 [form qty text input for poster 3]
  • ...
  • Poster n [form qty text input for posters n]

  • Name

  • Email
  • Address
  • Details

I'd imagine there is a simple way to do this, but I can't seem to find articles of customizing "WebForm" forms. Any help would be much appreciated.

© Stack Overflow or respective owner

Related posts about drupal

Related posts about webforms