deziner76hd
05-05-2012, 02:01 PM
Hello,
My form is located here on page three of the multi form:
http://www.rocpinions.com/main-form.html
I have been working on this for days and can't figure it out.
I have four check boxes. Dog, Cat, Other, None of These. If Dog Cat and Other are checked that is fine but if the check box "None of These" is checked I need it to remove the checks from All other boxes.
This is an example of exactly what I need my form to do jsfiddle.net/srEuM/
Does anyone know how I can accomplish this with RS Form Pro?
<script type="text/javascript">
function checkI()
{
checkL = document.getElementsByName('form[PetsInHouse][]');
for (i=0;i<(checkL.length-1);i++)
if(document.getElementById('PetsInHouse3').checked)
document.getElementById('PetsInHouse'+i).disabled = true;
else document.getElementById('PetsInHouse'+i).disabled = false;
}
</script>
I am currently using this code above and it only disables all checkboxes when "None of These" is checked but if I check any of the other boxes I can still check "None of These" and that is not the correct functionality.
This is exactly what I need to do but in the same format I have above.
http://jsfiddle.net/srEuM/
Any help would be greatly appreciated.
Thank you
Deziner
My form is located here on page three of the multi form:
http://www.rocpinions.com/main-form.html
I have been working on this for days and can't figure it out.
I have four check boxes. Dog, Cat, Other, None of These. If Dog Cat and Other are checked that is fine but if the check box "None of These" is checked I need it to remove the checks from All other boxes.
This is an example of exactly what I need my form to do jsfiddle.net/srEuM/
Does anyone know how I can accomplish this with RS Form Pro?
<script type="text/javascript">
function checkI()
{
checkL = document.getElementsByName('form[PetsInHouse][]');
for (i=0;i<(checkL.length-1);i++)
if(document.getElementById('PetsInHouse3').checked)
document.getElementById('PetsInHouse'+i).disabled = true;
else document.getElementById('PetsInHouse'+i).disabled = false;
}
</script>
I am currently using this code above and it only disables all checkboxes when "None of These" is checked but if I check any of the other boxes I can still check "None of These" and that is not the correct functionality.
This is exactly what I need to do but in the same format I have above.
http://jsfiddle.net/srEuM/
Any help would be greatly appreciated.
Thank you
Deziner