Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Make multiple select dropdown required w/ verification

Mike Portman free asked 4 years ago


I'm trying to create a multiple dropdown in a form w/ verification. I got the verification to work on inputs and dropdowns where it wasn't multi select but when I added the multiple option then it doesn't accept that items have been selected.

For example, this works.

<input required="true" type="text" class="form-control required" id="C___of_Employees1" name="C___of_Employees1" placeholder="Number of Employees*" value="" >

But this dropdown doesn't think anything is selected...

<select required="true" multiple class="form-control selectpicker" data-style="btn btn-link" id="businessmarkets" name="businessmarkets" >
  <option value="" disables selected="false" style="display: none;" id="businessmarkets">Business Markets Served*</option>
  <option value="Large Enterprise (10,000 Employees)">Large Enterprise (10,000 Employees)</option>
  <option value="Enterprise (1,000-10,000 Employees)">Enterprise (1,000-10,000 Employees)</option>
  <option value="Small / Medium (1-1,000 Employees)">Small / Medium (1-1,000 Employees)</option>
</select>

Grzegorz Bujański staff commented 4 years ago

Hi. How I can reproduce this? Can you create snippet here: https://mdbootstrap.com/snippets/ ?



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: all
  • Browser: all
  • OS: mac and pc
  • Provided sample code: Yes
  • Provided link: No