I have the options & Select Name ID with all the correct ID #'s in the correct place but only the main Option name (color) works and not the other we have like (shapes, orientation). Do you keep adding if statements for each option to enforce? I had 4 we tried but only the first two worked. Also do you place a space between each line on these if statements?
It seems to happen with the 3rd if statement afterwards in my javascript.
http://awardsplaquestrophies.com/awards/pr.../products_id/33 - 2 forces work here
http://awardsplaquestrophies.com/awards/pr.../products_id/35 - this 1 forced doesn't work but is coded correct?
here are my attribute values -
Option COLOR OID=1 SELECTID=5
Option ORIENTATION OID=6 SELECTID=12
Option SHAPE OID=2 SELECTID=13
My javascript if statements also run in this order also as shown below:
Thanks for any suggestions or help anyone could give us, I can't get it to force the shape option which is needed.
<script language="javascript"><!--
// az - Start Enforce Attribute Select
function validate() {
if (cart_quantity.elements['id[1]'].value == 5) {
alert('Please select the color option from the menu.');
cart_quantity.elements['id[1]'].focus();
return false;
}
if (cart_quantity.elements['id[6]'].value == 12) {
alert('Please select the orientation option from the menu.');
cart_quantity.elements['id[6]'].focus();
return false;
}
if (cart_quantity.elements['id[2]'].value == 13) {
alert('Please select the shape option from the menu.');
cart_quantity.elements['id[2]'].focus();
return false;
}
}
// az - End Enforce Attribute Select
//--></script>
PS.. It is a great contribution if I can more than 2 options to prompt.
PPS... If I try to switch the shape & orientation IF statements - niether work and only color works.
Thank you
Steve