Perhaps in the javascript function it calls right before it submits the form, you could try setting the value of undefined_quantity to the value of the drop down menu.