Tried to apply colors to Lead, but without a success. Code from custom\Espo\Custom\Resources\metadata\entityDefs\L ead.json below:
"status": {
"type": "enum",
"options": [
"",
"Payment",
"Admission",
"Visa",
"Start",
"Paused",
"Commission claim",
"Visa refusal",
"Cancel",
"Follow up"
],
"default": "Payment",
"view": "views/fields/enum-styled",
"style": {
"Payment": "success",
"Commission claim": "danger",
"Follow up": "danger",
"[option]": "[style]"
},
"required": true,
"isPersonalData": false,
"isSorted": false,
"readOnly": false,
"tooltip": false
},
Also in case field is marked as "link" in Layout manager - will it work also? I suspect that I need to change code somewhere else)
"status": {
"type": "enum",
"options": [
"",
"Payment",
"Admission",
"Visa",
"Start",
"Paused",
"Commission claim",
"Visa refusal",
"Cancel",
"Follow up"
],
"default": "Payment",
"view": "views/fields/enum-styled",
"style": {
"Payment": "success",
"Commission claim": "danger",
"Follow up": "danger",
"[option]": "[style]"
},
"required": true,
"isPersonalData": false,
"isSorted": false,
"readOnly": false,
"tooltip": false
},
Also in case field is marked as "link" in Layout manager - will it work also? I suspect that I need to change code somewhere else)
Comment