In Opportunity the leadSource field inherits the options from the Lead entity - field source. see the code below for the leadSource
PHP Code:
"leadSource": {
"type": "enum",
"view": "crm:views/opportunity/fields/lead-source",
"customizationOptionsDisabled": true,
"optionsReference": "Lead.source"
},
You see the option "optionsReference": "Lead.source" that tells the system that option list of this field is coming from the Lead.source also customizationOptionsDisabled: true means you can't customise the options of the field. You can always customise this field if you want different value, create a new field leadSource under custom/Resources/matadata/entityDefs/Opportunity.json as below
PHP Code:
"leadSource": {
"type": "enum"
},
This will allow you set up the options and have access to all the enum field features.
Leave a comment: