I'm just wondering how to remove the customer need (LeadType) on the opportunity mini-page. The problem is that this customer need field is getting dynamically set with a method on a third-party module. With that being said I can not edit the module and take out the code where it is being set. It is part of the CoreLeadOpportunity package. It is getting set in this code.
addQueryColumns: function(insertQuery) { this.addLookupQueryColumn(insertQuery, { columnName: "Account", entityColumnName: "QualifiedAccount" }); this.addLookupQueryColumn(insertQuery, { columnName: "Contact", entityColumnName: "QualifiedContact" }); this.addLookupQueryColumn(insertQuery, { columnName: "LeadType", entityColumnName: "LeadType" });
Any help would be appreciated. Thanks!
Like
Please create a replacing client module for the OpportunityMiniPage schema. Then remove the fields which aren't needed in the diff block in the newly created replacing client module. Please feel free to use the example below. Note that the isRequired property of the LeadType attribute must be set to false.
define("OpportunityMiniPage", [],
function() {
return {
entitySchemaName: "Opportunity",
mixins: {
},
attributes: {
"LeadType": {"isRequired": false}
},
methods: {
},
diff: /**SCHEMA_DIFF*/[
{
"operation": "remove",
"name": "LeadType"
},
]/**SCHEMA_DIFF*/
};
});