It's existed already, but thanks tanya for your help.
I've managed a workaround to solve it.
Hidden Link
Collapse
X
-
-
attach custom:views/Account/detail and custom:views/Account/record/detail
Leave a comment:
-
I had this code & think there's no fault
{
"controller": "custom:controllers/Account",
"views": {
"detail": "custom:views/Account/detail"
},
"recordViews": {
"detail": "custom:views/Account/record/detail"
}
} -
NO, I checked my custom/entity and client/custom files and didn't find any dynamic logic to make this field hidden. -
contact field has default link view, so it hasn't be hidden. Did you add this field on the layout?Leave a comment:
-
This is my entityDefs file
\www\espocrm\custom\Espo\Custom\Resources\metadata \entityDefs
{
"fields": {
"name": {
"type": "personName"
},
"salutationName": {
"type": "enum",
"options": [
"",
"Mr.",
"Mrs.",
"Ms.",
"Dr."
]
},
"firstName": {
"type": "varchar",
"maxLength": 100,
"default": ""
},
"lastName": {
"type": "varchar",
"maxLength": 100,
"required": true,
"default": ""
},
"description": {
"type": "text"
},
"emailAddress": {
"type": "email"
},
"phoneNumber": {
"type": "phone",
"typeList": [
"Mobile",
"Office",
"Home",
"Fax",
"Other"
],
"defaultType": "Mobile"
},
"address": {
"type": "address"
},
"addressStreet": {
"type": "text",
"maxLength": 255,
"dbType": "varchar"
},
"addressCity": {
"type": "varchar"
},
"addressState": {
"type": "varchar"
},
"addressCountry": {
"type": "varchar"
},
"addressPostalCode": {
"type": "varchar"
},
"createdAt": {
"type": "datetime",
"readOnly": true
},
"modifiedAt": {
"type": "datetime",
"readOnly": true
},
"createdBy": {
"type": "link",
"readOnly": true,
"view": "views/fields/user"
},
"modifiedBy": {
"type": "link",
"readOnly": true,
"view": "views/fields/user"
},
"assignedUser": {
"type": "link",
"required": false,
"view": "views/fields/assigned-user"
},
"teams": {
"type": "linkMultiple",
"view": "views/fields/teams"
},
"bAccountManagerId": {
"type": "int",
"required": false,
"audited": true,
"disableFormatting": false,
"isCustom": true
},
"bCustomerAccountId": {
"type": "varchar",
"required": false,
"trim": true,
"audited": false,
"isCustom": true
},
"contact": {
"type": "link"
},
"account": {
"type": "link"
},
"bClientTypeId": {
"type": "int",
"required": false,
"audited": true,
"disableFormatting": false,
"isCustom": true
},
"segment": {
"type": "link"
},
"cashTransfers": {
"type": "linkMultiple",
"layoutDetailDisabled": false,
"layoutListDisabled": true,
"layoutMassUpdateDisabled": false,
"noLoad": false,
"importDisabled": false,
"isCustom": true
},
"arabicName": {
"type": "varchar",
"required": false,
"trim": true,
"audited": true,
"isCustom": true
}
},
"links": {
"createdBy": {
"type": "belongsTo",
"entity": "User"
},
"modifiedBy": {
"type": "belongsTo",
"entity": "User"
},
"assignedUser": {
"type": "belongsTo",
"entity": "User"
},
"teams": {
"type": "hasMany",
"entity": "Team",
"relationName": "EntityTeam",
"layoutRelationshipsDisabled": true
},
"contact": {
"type": "belongsTo",
"foreign": "brokerageAccounts",
"entity": "Contact",
"isCustom": true
},
"account": {
"type": "belongsTo",
"foreign": "brokerageAccounts",
"entity": "Account",
"isCustom": true
},
"segment": {
"type": "belongsTo",
"foreign": "brokerageAccounts",
"entity": "Segment",
"isCustom": true
},
"cashTransfers": {
"type": "hasMany",
"foreign": "brokerageAccount",
"entity": "CashTransfers",
"isCustom": true
}
},
"collection": {
"sortBy": "createdAt",
"asc": false,
"textFilterFields": [
"name",
"lastName",
"bCustomerAccountId",
"arabicName"
]
},
"indexes": {
"firstName": {
"columns": [
"firstName",
"deleted"
]
},
"name": {
"columns": [
"firstName",
"lastName"
]
},
"assignedUser": {
"columns": [
"assignedUserId",
"deleted"
]
}
}
}
The contact link only has the hidden property and I didn't know. This file is auto-generated from EspoCRM after defining the entity fields -
Hello
It depends on how do you hide this field.
Could you explain better?Leave a comment:
-
Hidden Link
tanya I have a problem with a related link which is hidden in the "detail" layout between two entities and this is its metdata/entityDefs/Account.json
"contact": {
"type": "link"
},
how can I show the hidden link. I added a text between the <a></a> tags and its run successfully, but how can I make it dynamic?Tags: None

Leave a comment: