I am trying to hide a field when value in combo box lists changes.
I am trying to find what is the property to hide the field because originally I got help to put this code together but it doesn't quite do what I need, as at the moment it disables or enables the field onchange event,but the field is enabled anyhow when I edit the page,so if I had value selected in the field where it disables the field and save it and edit it the field is not disabled because that only happens on onchange event and I still need it to be disabled whe edited,so I was thinking that hiding it would be a better idea alltogether,but once again have to find a way how to keep it hidden according to selection in the field when the field is edited as well.
function showChoice()
{
if (document.myForm.Commissionable.value == 'Yes') {
document.myForm.PropertyDetailsName.enabled=true;
}
else {
document.myForm.PropertyDetailsName.enabled=false;
}
}
I hope this makes sense and somebody can help.
Regards and thanks