Announcement
Collapse
No announcement yet.
Missing options - Enum type field
Collapse
X
-
Which version of EspoCRM are you using?
E.g. in version 7.2.7 you can not see where the option come from but starting with version 7.5.0 you can reuse options from other fields. Then you can see that the options come from the entity "Lead" and the field "source".
- Likes 2
-
Hey,
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.Rabii
Web Dev
Comment
Comment