Drupal Webform Select 2 options instead of unlimited I have a list of 150 products on my select a sample list on my webform. Customers are supposed to select only 2 products, not 3, 4, etc....

I chose "Multiple" so how can I have them select only 2 products from the list instead of 3 or more?

Thanks!
You can do client-side checking for the number of items selected, and if greater than 2, you can add your desired behavior, such as clearing the selections and/or alerting the user.

Example with jQuery:

var selectID = '#your-select-ID'; // change this to your selector
$(selectID).change(function () {
  if ($(selectID + " option:selected").length &gt; 2) {
      $(selectID).val([]); // clear the selections
      // do other stuff if you want, like alert('Can only select 2 options');
  }
});