I have the following fields
category
subcategory
description
I would like to disable/enable edit to the description field if a certain word is found on the subcategory field. The category field is a drop-down and subcategory is a dependent drop-down. The description field is a memo field.
I used the following code but is does not work.
<script>
document.forms.editform.value_subcategory.onchange=function()
{
if(InStr(document.forms.editform.value_subcategory.value,"On-Site")
{
document.forms.editform.value_description.disabled=true;
}
else
{
document.forms.editform.value_description.disabled=false;
}
}
</SCRIPT>