Hi All,
Requirement: I have a search template with 10 mandatory fields. Search button is enabled only when all 10 mandatory fields values entered. My requirement is to enable search button if any one of the mandatory field value is entered. This requirement I want to do using global plug-in.
What I have Tried: I have tried below code in global plug-in. Imported required js files.
aspect.after(ecm.model.SearchCriterion.prototype, "onValueChange", function() {
if(this.value.length>0 && this.valueRequired){
this.searchButton.set("disabled", false);
}
});
Output: Using above code I could able to check whether mandatory field value is entered. But the search button is not enabled.
Can you please suggest any solution.
#IBMContentNavigator(ICN)#Support#SupportMigration