Start a new topic

Creating a Dropdown List for Quantity

I’m trying to us a drop down list for the qty in QuoteValet, so I can restrict the client to a set of specific quantities.

 

Looking at the resultant html when using a textbox, it uses a name of DI_QtyBase___n, where n is the line number starting from 0.

 

So my plan is to use Javascript to create the appropriate HTML, but in the first instance, I’m just trying to get it to work with some hardcoded html.

 

So I have the following code to create a dropdown list for the first line on the quote.

 

  <select name="DI_QtyBase___0" id="DI_QtyBase___0" type="number">

  <option selected="selected">[DI_QtyBase]</option>

  <option value="1">1</option>

  <option value="2">2</option>

  <option value="3">3</option>

  <option value="4">4</option>

  </select>

 

What’s happening is that is appending the selected value to the existing value.

 

What’s even more strange, is if I have more than one product, ie I have 3 products with qty’s of 1, 1 & 2, and have the select box on the first product, and change the 1 to a 3 I get 1312.


Anyone have any ideas?

Login or Signup to post a comment