On issue Creation, using code like this against 3 fields - If disclosed field = yes, then show. It's only showing one field on the screen (the last one) w/ that code in it, it's not showing all 3 fields. Each field works fine on it's own to show, just not when they are all setup together... Any ideas how to correct? I need to apply similar to 6 additional fields too.... Thanks!
<script type="text/javascript">
disclosed = document.getElementById('customfield_10009');
if (disclosed) {
target = document.getElementById('customfield_10006').parentNode;
// Hide the target field if disclosed != yes
if (disclosed.value != '10005') target.style.display='none';
disclosed.onchange=function() {
if (this.value == '10005') {
target.style.display = '';
} else {
target.style.display='none';
}
}
}
</script>