If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
I assume that the database assigns an ID to each record created. I would like to display that ID when looking at an account. Is this a setting in customizing Espo? What is the way to do this?
Hello,
add ID to the layout. This field is hidden from Layout Manager.
If you have any customization in Account layout, you need to modify the file custom/Espo/Custom/Resources/layouts/Account/detail.json
If you don't have this file, copy it from application/Espo/Modules/Crm/Resources/layouts/Account (you could copy and modify all needed layouts)
add row [{"name":"name"},false], into rows section (the structure is intuitive clear).
After this the field ID will be visible in Layout Manager https://www.espocrm.com/video/layout-manager/
Thank you, I successfully added ID to the layout. However, I am looking for something that will auto number. Is there a field that already does this? Is there an existing field in Customer table(s) that could be used?
Or if you need auto-increment only (the visible difference is only number field type has defined length, AI - is simple number without '0' on the beginning) , you need to add field manually (see an example https://github.com/espocrm/espocrm/b...s/Case.json#L8)
Comment