Question
Dynamic Form field name
I have a shopping cart that creates a dynamic field for the
quantity of each product in the cart. I need to be able to make
sure the user does not submit a blank value. I can not use cfinput
as per client instructions. The field is:
<input name="Quant_#GetCart.ShowID#" type="Text" value="#GetCart.Quantity#" size="1" maxlength="2" title="Quantity"/>
How would you go about validating Quant_#GetCart.ShowID#? Thanks in advance for the help/suggestions.
<input name="Quant_#GetCart.ShowID#" type="Text" value="#GetCart.Quantity#" size="1" maxlength="2" title="Quantity"/>
How would you go about validating Quant_#GetCart.ShowID#? Thanks in advance for the help/suggestions.