Create a block

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ferradeira
    Member
    • Apr 2026
    • 33

    #1

    Create a block

    How can I create a block like the one in Accounts - Billing Address with Street, City, etc?
    thanks
  • victor
    Active Community Member
    • Aug 2022
    • 1222

    #2
    Please describe your request in more detail. Preferably by adding screenshots.

    ​​​​​​Maybe you mean a field of Address type?
    Last edited by victor; 07-08-2026, 02:47 PM.

    Comment

    • ferradeira
      Member
      • Apr 2026
      • 33

      #3
      Is attached. I call it a block, but don't know if it is the correct name.
      Yes, address type.
      Than I want to add a + button to add more blocks if needed, like in email field for example.
      Attached Files

      Comment

      • yuri
        EspoCRM product developer
        • Mar 2014
        • 9945

        #4
        There's no such a feature.

        An alternative, is to create a custom entity type with an Address field there. Then, create related records, each one will have their address.

        Comment

        • ferradeira
          Member
          • Apr 2026
          • 33

          #5
          can you please help me with the steps?

          Comment

          • yuri
            EspoCRM product developer
            • Mar 2014
            • 9945

            #6
            1. Entity Manager > Create Entity. Name it 'Address Entry'.

            2. Entity Manager > Address Entry > Fields > Add Field. Select 'Address'. Name it 'Address'.

            3. Entity Manager > Address Entry > Layouts > Detail. Drag and Drop the Address field to the layout. Optionally, remove the Name field from the layout. Do the same for Detail (small) layout.

            4. Entity Manager > Address Entry > Layouts > List. Drag and Drop the Address field to the layout. Optionally, remove the Name field from the layout.

            5. Entity Manager > {Entity Type} > Relationship > Create Link. Select One-to-Many type, select the Address Entry as a foreign entity. Check Link-Multiple.

            6. Entity Manager > {Entity Type} > Layouts > Detail. Drag and drop the 'Address Entries' field to the layout.

            7. Entity Manager > {Entity Type} > Fields > Address Entries. Check 'Create Button'.

            8. Entity Manager > Address Entry > Formula > Before Save Custom Script. Specify code:

            Code:
            name = string\concatenate(addressCity, ' ', addressCountry, ' ', addressStreet);
            ---

            {Entity Type} is your entity type in question.

            Comment

            • yuri
              EspoCRM product developer
              • Mar 2014
              • 9945

              #7
              As the result, there will be such a field. Addresses are added as records.

              Click image for larger version

Name:	image.png
Views:	19
Size:	7.6 KB
ID:	127195

              Comment

              Working...