Answers.Body: <p>How about something like this:</p>
  
  <ol>
  <li><p>Finite quantities for each item (if you have too many - make them select lists).</p></li>
  <li><p>Calculate the Contribution Amount w/ some jQuery - [just like on CiviCRM contribution pages] - OR - if you don't have too many combinations - you can do this via Webform Conditionals - so no code required. </p></li>
  </ol>
  
  <p><a href="https://i.sstatic.net/FUxnk.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/FUxnk.png" alt="enter image description here"></a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-08T02:31:59.210Z
Answers.Text: PS - of course CiviCRM will have no idea on what people purchased - but the monies will add up. And you've got Results in Webform to tell you how many mugs and pens to ship to people.
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-08T02:30:14.513Z
Answers.LastActivityDate: 2016-07-08T02:30:14.513Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>In a webform, I want to offer a selection of prices and quantities (like a simple price set).</p>
  
  <p>For example:</p>
  
  <pre><code>  Thing A  $10  [quantity box]
    Thing B  $20  [quantity box]
  </code></pre>
  
  <p>I've added a Contribution on the webform and ticked the box to add the contribution amount to the form. It seems like it should just be a matter of changing the widget type for the contribution amount to the right thing ... but I haven't found the right widget :-(</p>
  
  <p>'Select options' lets me select 0/1 of each item, but not a user-entered quantity.</p>
  
  <p>What widget type will do that?  Alternatively, any other suggestions for structuring the webform to achieve this?</p>
  
  <p>[I want to use a webform for its other features that I don't get with a priceset and contribution page.] </p>
  
  <p>(Drupal 7, CiviCRM 4.6.18)</p>
  
Tags: <webform-civicrm><contributions>
Title: Webform contribution for multiple items?
ThreadText: # Webform contribution for multiple items?
  
  (Asked by: username_0 on 2016-07-07)
  
  In a webform, I want to offer a selection of prices and quantities (like a simple price set).
  For example:
    Thing A  $10  [quantity box]
    Thing B  $20  [quantity box]
  
  I've added a Contribution on the webform and ticked the box to add the contribution amount to the form. It seems like it should just be a matter of changing the widget type for the contribution amount to the right thing ... but I haven't found the right widget :-(
  'Select options' lets me select 0/1 of each item, but not a user-entered quantity.
  What widget type will do that?  Alternatively, any other suggestions for structuring the webform to achieve this?
  [I want to use a webform for its other features that I don't get with a priceset and contribution page.] 
  (Drupal 7, CiviCRM 4.6.18)
  
  **Tags:** webform-civicrm, contributions
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-07-08. Score: 2
  
  How about something like this:
  
  1. Finite quantities for each item (if you have too many - make them select lists).
  2. Calculate the Contribution Amount w/ some jQuery - [just like on CiviCRM contribution pages] - OR - if you don't have too many combinations - you can do this via Webform Conditionals - so no code required.
  
  [![enter image description here](https://i.sstatic.net/FUxnk.png)](https://i.sstatic.net/FUxnk.png)
  
  > **Comments:**
  > **username_1**: PS - of course CiviCRM will have no idea on what people purchased - but the monies will add up. And you've got Results in Webform to tell you how many mugs and pens to ship to people.  
  
  ---
  
  