When adding / editing a field of an entity, it would be nice to have the "tooltip" option available as well.
You can add a tooltip manually . Suppose we have entity Xx, field "name"
First should add the tooltip option in the definition.
/custom/Espo/Custom/Resources/metadata/entityDefs/Xx.json
{
"fields": {
"name": {
"type": "varchar",
"required": true,
"tooltip": true,
"trim": false,
"audited": false
},
Then, add the tooltip string in the I8n file :
/custom/Espo/Custom/Resources/i18n/en_US/Xx.json
{
"labels": {
"Create Xx": "Create Xx"
},
"tooltips": {
"name": "Fill in the full name for this thing"
},
"fields": {
"name": "Name"
}
}
You can add a tooltip manually . Suppose we have entity Xx, field "name"
First should add the tooltip option in the definition.
/custom/Espo/Custom/Resources/metadata/entityDefs/Xx.json
{
"fields": {
"name": {
"type": "varchar",
"required": true,
"tooltip": true,
"trim": false,
"audited": false
},
Then, add the tooltip string in the I8n file :
/custom/Espo/Custom/Resources/i18n/en_US/Xx.json
{
"labels": {
"Create Xx": "Create Xx"
},
"tooltips": {
"name": "Fill in the full name for this thing"
},
"fields": {
"name": "Name"
}
}
Comment