Onchange event

There is a field “Field1” and a drop-down box “Field2” in a form. When the Field1 has a particular value, say “Initiated”, the drop-down box should be editable. But for any other status of the Field1 value, the drop-down box should go uneditable. There is a code already written in the onchange event of the form. This id for hiding and showing a help depending on the value of the drop-down box.

Subject: onchange event

write code like this:-

a=uidoc.fieldgettext(“field1”)

if a=“Initiated” then

uidoc.editmode(true,false)

esle

end if

Rupesh