I did set the min to -1 and that may have done it but I'm not sure because,
I have a select list that shows and hides two divs, but now it doesn't switch between the two to show/hide one or the other, this is what it has
<select name="type" id="type" onchange="WAValidateRX(document.forms[2].type,'select','/2/i','- Invalid entry',document.forms[2].type,0,true);WAValidateHD(document.forms[2].type,'sub_url',true);WAValidateRX(document.forms[2].type,'select','/2/','- Invalid entry',document.forms[2].type,0,true);WAValidateHD(document.forms[2].type,'sub_code',false)">
<option value="1" selected="selected">Code</option>
<option value="2">Print</option>
</select>
I noticed that after I added another form on my page that all the 1's where changed to 2's in the above so it used to be like this:
<select name="type" id="type" onchange="WAValidateRX(document.forms[1].type,'select','/2/i','- Invalid entry',document.forms[1].type,0,true);WAValidateHD(document.forms[1].type,'sub_url',true);WAValidateRX(document.forms[1].type,'select','/2/','- Invalid entry',document.forms[1].type,0,true);WAValidateHD(document.forms[1].type,'sub_code',false)">
<option value="1" selected="selected">Code</option>
<option value="2">Print</option>
</select>
By the way the duplicate entry is for both of these option values. These are regular expression validations on the select list like so in the behavior window:
onChange ----- regular expression
onChange ----- show/hide layer
onChange ----- regular expression
onChange ----- show/hide layer
Is there a place where I need to change a [1] to [2], I also just noticed if I have not submitted for a specific record it all works fine, but if I submit for a record then this problem occurs.
thanks