Hi Venkat,
I share my coder for this case how hide/show element by status field change. We used for show/hide affected_resource field.
First you can define a id for element for which you hide/show elements like,
<PMD_MACRO name=dtlLookup hdr="Affected Resource" attr="affected_resource">
var affected_resource_id = _dtl.currID;
Then define a function hide/show this elements under <head> tags
function hideShowCI()
{
if (document.main_form.elements["SET.status"].value == "CLREQ")
{
detailShowElements(affected_resource_id ,1);
} else {
detailHideElements(affected_resource_id,1);
}
}
When page is loading if you can hide this element you enter codes loadActions() function
function loadActions()
{
detailHideElements(affected_resource_id,1);
Last, you can define hideShowCI() function to put onChange attribute of status field like
<PDM_MACRO name=dtlDropdown hdr="New Status" evet="onBlur=\\\"detailSyncEditForms(this)\\\" onchange=\\\"hideShowCI()\\\"" factory=crs_in lookup=no>
I hope its your need.
Regards,
Turker