Client Side Events for Edit Page only

Ext. Search is not clickable when I add Client Side Events

{ // keys = event types, values ​​= handler functions
"change": function(e) {
if (this.value == "yes") {
$(this).fields("myfield").visible(true); // true to show, false to hide
} else {
$(this).fields("myfield").visible(false);
}
}
}

The above code can work fine on the edit page but I don’t need it on the list page. How to solve this problem?

You may check if (ew.PAGE_ID == "edit") first.

1 Like