Answers.Body: <p>You can totally do this out of the box with Webform CiviCRM module!</p>
  
  <p>Sorry for the swim squad references - but that's the project I was on when I read your question - here's a quick demo: </p>
  
  <ul>
  <li>in CiviCRM Tab -> add Membership Type - User Select; also add Membership Fee field;</li>
  <li>in the Webform tab -> ensure the Membership Type is a Listbox; Use static to only get the ones you need on this form; </li>
  </ul>
  
  <p>Then under Webform Tab -> Conditionals - just a quick example - but you can make this as complex as you like - and even combine statements (is greater than or equal and is less then) to cover your $ ranges.</p>
  
  <p><a href="https://i.sstatic.net/uQtH9.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/uQtH9.png" alt="enter image description here"></a>
  This says -> if we type in 25 -> we automatically get option1 -> which is my case is White Squad Membership; note how Webform is clever enough to grey out the Membership Type so the user can't self select anymore; </p>
  
  <p><a href="https://i.sstatic.net/m9SSr.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/m9SSr.png" alt="enter image description here"></a></p>
  
  <p>And if we type in 50 or higher -> we automatically get option number 2 -> in my case: a Black Squad Membership</p>
  
  <p><a href="https://i.sstatic.net/qv61o.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/qv61o.png" alt="enter image description here"></a></p>
  
  <p><strong>PS - and you're going to get that slider in D8:</strong></p>
  
  <p><a href="https://i.sstatic.net/b6ThI.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/b6ThI.png" alt="enter image description here"></a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T02:05:01.313Z
Answers.Text: Great answer! PS you don't have to wait for D8 to use https://www.drupal.org/project/sliderfield
Answers.UserDisplayName: Coleman
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T02:05:31.373Z
Answers.Text: Awesome! Didn't know that one yet :-)
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T02:25:30.230Z
Answers.Text: I have no idea if it works with webform conditionals and webform_civicrm but if they've written their code properly it ought to.
Answers.UserDisplayName: Coleman
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T02:27:16.633Z
Answers.Text: Ok give me a minute :-)
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T02:33:44.127Z
Answers.Text: Slider is not working out of the box for me for the Membership Fee field - i.e. without reading the instructions; I may try later!
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T02:44:58.997Z
Answers.Text: Ok got the slider to work - but it's not working w/ conditionals to set the Membership Type field - so not an option (yet);
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T03:44:36.603Z
Answers.Text: So to be clear, the slider doesn't work, but a regular textbox does?
Answers.UserDisplayName: Zachary
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T04:35:42.923Z
Answers.Text: Yes! See my screenshots
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T16:02:33.533Z
Answers.Text: @Zachary don't forget to up-vote & accept Karin's answer :)
Answers.UserDisplayName: Coleman
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T18:01:52.770Z
Answers.Text: I"m trying it this morning and will report back with how far I can get. Thanks KarinG
Answers.UserDisplayName: Zachary
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T18:03:34.347Z
Answers.Text: Let me know if you have any Q 
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T18:09:55.180Z
Answers.Text: One more question. I want to have 3 of these fields where a user can enter an amount, not one. Is that possible on 1 webform? I love your suggestion where it is one box, and the conditionals pick the membership, but our membership team insists on having 3 locations for someone to put in an amount for that level (between X and Y amount). If not, I could have a splash page which directed to three forms, or use blocks or something.
Answers.UserDisplayName: Zachary
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T18:19:00.717Z
Answers.Text: Sorry Zach - I don't understand why one would want 3 fields? What would that look like? How would that work - to have 3 locations to pick an amount between X and Y? Would you want to sum the 3 amounts? Sorry - not understanding what your Membership team is looking for; do they have an example somewhere you can show us?
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T18:24:06.090Z
Answers.Text: BTW, I am currently trying to convince them it's overly complicated ;) It would look like your model, times 3. The first field "Level 1" would accept between $5-59 and apply the Level 1 Membership. The second field would be "Level 2" and accept between "$60-99" and apply the Level 2 Membership. They want people to realize a membership is worth the maximum, but accept less for those who can not afford. They want to clearly differentiate the levels, so having just one field with an input box would not do that (necessarily). Would just putting a table/chart with levels above be a compromise?
Answers.UserDisplayName: Zachary
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T18:25:36.440Z
Answers.Text: I am counter proposing the model you have proposed FYI because it passes my internal sanity check, whereas the other model just irks me for some deep reason.
Answers.UserDisplayName: Zachary
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T18:32:49.410Z
Answers.Text: Yes to a graph/chart! You don’t want 3 input boxes - unless you know what you want to do with the 3 (sum them? or take the max?);
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T18:39:03.887Z
Answers.Text: Exactly, they dont want them to be a sum but just offered as choices. Its like they want radio buttons where each button is a ranged/slider
Answers.UserDisplayName: Zachary
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T20:41:18.703Z
Answers.Text: Radio sliders - ok that would be a cool widget 
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-15T00:42:16.047Z
Answers.Text: I set up your demo (answer accepted). A quirk seems to be that they can choose membership options from the dropdown before setting their price. I used a conditional to solve that, too. Woot!
Answers.UserDisplayName: Zachary
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-15T00:52:04.527Z
Answers.Text: Yes - exactly :-) So powerful!
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T01:48:08.723Z
Answers.LastActivityDate: 2017-11-14T01:48:08.723Z
Answers.UserDisplayName: KarinG - Semper IT
Answers.Body: <p>if you need this only on the front facing forms then some javascript might do the required. ie have a single field for them to put the amount in, and behind the scenes figure out which Memb Type it should be and set that to 
   selected. sorry i can't offer a recipe.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-13T23:17:41.497Z
Answers.Text: Hey Petednz you've been overwhelmingly nice in helping me out! I still feel the need to tip you somehow. 
  
  Here's my "crazy" idea. I'll set up a price set and have a price field for each level.
  
  Each price field will be a select field with options entered in a painstaking fashion  (e.g. Level 1 = Membership type = 5$, Level 1 = Membership type = $6 (in $1 intervals).
  
  Then, I'll use the jQuery UI (hopefully) to turn the select fields into a slider for the front end. 
  
  On the back end, the staff could still pick the price set option that was the correct $ amount in the sliding scale.
Answers.UserDisplayName: Zachary
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-13T23:21:18.783Z
Answers.Text: I also had a thought that perhaps I could take your route and then use Webform CiviCRM to essentially be a passthrough for contributions where the user puts in an amount and then somehow use the rules extension or the drupal rules module to create the memberships. But- I perceive this might actually be harder than the above.
Answers.UserDisplayName: Zachary
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T03:22:51.293Z
Answers.Text: ouch that sounds painful. surely the javascript can work through going, if this is less than x then set it to $x, if it is below y set it to $y so you would only have 1 price set per range
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T03:23:26.083Z
Answers.Text: Actually WEBFORMS rock. You should be able to do this easily using Conditionals based on the amount someone enters.
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T03:24:12.927Z
Answers.Text: oh too late. good write up Karin ;-)
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T13:22:39.430Z
Answers.Text: don’t forget to vote it up Pete 
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-14T17:59:27.480Z
Answers.Text: Thx for the poke. assumed i would have when i first saw it.
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-13T23:06:04.717Z
Answers.LastActivityDate: 2017-11-13T23:06:04.717Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>We are looking to have ranged membership prices e.g.</p>
  
  <p>$5-59 = Level 1
  $60-99 = Level 2
  $100-499 = Level 3</p>
  
  <p>CiviCRM seems to support a "minimum price" for membership. How do we make it a range between minimum and maximum? </p>
  
  <p>Also, these ranges should support recurring contributions (yearly). </p>
  
  <p>Nice to have: 
  * Ability to make a sliderfield out of the range</p>
  
  <p>CiviCRM 4.7.x - drupal 7</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-11-14T03:24:45.930Z
Comments.Text: stating your CMS is always worth doing!
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-11-14T03:42:38.983Z
Comments.Text: Sorry, drupal 7
Comments.UserDisplayName: Zachary
Tags: <civimember><webform-civicrm>
Title: CiviMember Range Price: Automatically assign Membership based on $amount paid
ThreadText: # CiviMember Range Price: Automatically assign Membership based on $amount paid
  
  (Asked by: username_0 on 2017-11-13)
  
  We are looking to have ranged membership prices e.g.
  
  $5-59 = Level 1
  $60-99 = Level 2
  $100-499 = Level 3
  
  CiviCRM seems to support a "minimum price" for membership. How do we make it a range between minimum and maximum?
  
  Also, these ranges should support recurring contributions (yearly).
  
  Nice to have:
  \* Ability to make a sliderfield out of the range
  
  CiviCRM 4.7.x - drupal 7
  
  **Tags:** civimember, webform-civicrm
  
  > **Comments:**
  > **username_1**: stating your CMS is always worth doing!  
  > **username_0**: Sorry, drupal 7  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2017-11-14. Score: 3 | Accepted answer
  
  You can totally do this out of the box with Webform CiviCRM module!
  
  Sorry for the swim squad references - but that's the project I was on when I read your question - here's a quick demo:
  
  * in CiviCRM Tab -> add Membership Type - User Select; also add Membership Fee field;
  * in the Webform tab -> ensure the Membership Type is a Listbox; Use static to only get the ones you need on this form;
  
  Then under Webform Tab -> Conditionals - just a quick example - but you can make this as complex as you like - and even combine statements (is greater than or equal and is less then) to cover your $ ranges.
  
  [![enter image description here](https://i.sstatic.net/uQtH9.png)](https://i.sstatic.net/uQtH9.png)
  This says -> if we type in 25 -> we automatically get option1 -> which is my case is White Squad Membership; note how Webform is clever enough to grey out the Membership Type so the user can't self select anymore;
  
  [![enter image description here](https://i.sstatic.net/m9SSr.png)](https://i.sstatic.net/m9SSr.png)
  
  And if we type in 50 or higher -> we automatically get option number 2 -> in my case: a Black Squad Membership
  
  [![enter image description here](https://i.sstatic.net/qv61o.png)](https://i.sstatic.net/qv61o.png)
  
  **PS - and you're going to get that slider in D8:**
  
  [![enter image description here](https://i.sstatic.net/b6ThI.png)](https://i.sstatic.net/b6ThI.png)
  
  > **Comments:**
  > **username_3**: Great answer! PS you don't have to wait for D8 to use https://www.drupal.org/project/sliderfield  
  > **username_2**: Awesome! Didn't know that one yet :-)  
  > **username_3**: I have no idea if it works with webform conditionals and webform_civicrm but if they've written their code properly it ought to.  
  > **username_2**: Ok give me a minute :-)  
  > **username_2**: Slider is not working out of the box for me for the Membership Fee field - i.e. without reading the instructions; I may try later!  
  > **username_2**: Ok got the slider to work - but it's not working w/ conditionals to set the Membership Type field - so not an option (yet);  
  > **username_0**: So to be clear, the slider doesn't work, but a regular textbox does?  
  > **username_2**: Yes! See my screenshots  
  > **username_3**: @username_0 don't forget to up-vote & accept Karin's answer :)  
  > **username_0**: I"m trying it this morning and will report back with how far I can get. Thanks username_2  
  > **username_2**: Let me know if you have any Q   
  > **username_0**: One more question. I want to have 3 of these fields where a user can enter an amount, not one. Is that possible on 1 webform? I love your suggestion where it is one box, and the conditionals pick the membership, but our membership team insists on having 3 locations for someone to put in an amount for that level (between X and Y amount). If not, I could have a splash page which directed to three forms, or use blocks or something.  
  > **username_2**: Sorry Zach - I don't understand why one would want 3 fields? What would that look like? How would that work - to have 3 locations to pick an amount between X and Y? Would you want to sum the 3 amounts? Sorry - not understanding what your Membership team is looking for; do they have an example somewhere you can show us?  
  > **username_0**: BTW, I am currently trying to convince them it's overly complicated ;) It would look like your model, times 3. The first field "Level 1" would accept between $5-59 and apply the Level 1 Membership. The second field would be "Level 2" and accept between "$60-99" and apply the Level 2 Membership. They want people to realize a membership is worth the maximum, but accept less for those who can not afford. They want to clearly differentiate the levels, so having just one field with an input box would not do that (necessarily). Would just putting a table/chart with levels above be a compromise?  
  > **username_0**: I am counter proposing the model you have proposed FYI because it passes my internal sanity check, whereas the other model just irks me for some deep reason.  
  > **username_2**: Yes to a graph/chart! You don’t want 3 input boxes - unless you know what you want to do with the 3 (sum them? or take the max?);  
  > **username_0**: Exactly, they dont want them to be a sum but just offered as choices. Its like they want radio buttons where each button is a ranged/slider  
  > **username_2**: Radio sliders - ok that would be a cool widget   
  > **username_0**: I set up your demo (answer accepted). A quirk seems to be that they can choose membership options from the dropdown before setting their price. I used a conditional to solve that, too. Woot!  
  > **username_2**: Yes - exactly :-) So powerful!  
  
  ---
  
  ### Answer by username_1 on 2017-11-13. Score: 0
  
  if you need this only on the front facing forms then some javascript might do the required. ie have a single field for them to put the amount in, and behind the scenes figure out which Memb Type it should be and set that to
  selected. sorry i can't offer a recipe.
  
  > **Comments:**
  > **username_0**: Hey username_1 you've been overwhelmingly nice in helping me out! I still feel the need to tip you somehow.   Here's my "crazy" idea. I'll set up a price set and have a price field for each level.  Each price field will be a select field with options entered in a painstaking fashion  (e.g. Level 1 = Membership type = 5$, Level 1 = Membership type = $6 (in $1 intervals).  Then, I'll use the jQuery UI (hopefully) to turn the select fields into a slider for the front end.   On the back end, the staff could still pick the price set option that was the correct $ amount in the sliding scale.  
  > **username_0**: I also had a thought that perhaps I could take your route and then use Webform CiviCRM to essentially be a passthrough for contributions where the user puts in an amount and then somehow use the rules extension or the drupal rules module to create the memberships. But- I perceive this might actually be harder than the above.  
  > **username_1**: ouch that sounds painful. surely the javascript can work through going, if this is less than x then set it to $x, if it is below y set it to $y so you would only have 1 price set per range  
  > **username_1**: Actually WEBFORMS rock. You should be able to do this easily using Conditionals based on the amount someone enters.  
  > **username_1**: oh too late. good write up Karin ;-)  
  > **username_2**: don’t forget to vote it up Pete   
  > **username_1**: Thx for the poke. assumed i would have when i first saw it.  
  
  ---
  
  