Announcement

Collapse
No announcement yet.

Multiple addresses per contact

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multiple addresses per contact

    Hi there!

    I want to implement the option to add multiple physical addresses per contact just like it is already implemented for the phone number and email address.
    Is there an easy way to make the "plus"-symbol appear and let users create multiple entries for a field?

    Thanks in advance.

  • #2
    Create own field with own view, but think, how you want to store it.

    https://www.espocrm.com/documentatio...om-field-type/ if you want to use it for many entities
    https://www.espocrm.com/documentatio...nt-field-views - if only for one entity (or for several, but you need to define this field for each)

    Comment


    • #3
      I appreciate the answer but I guess this is a very generic answer how to create a custom field.
      What I don't get is: What part makes the plus symbol show up and let the user save multiple values?

      Comment


      • #4
        only your field view and templates. Check how these fields are implemented https://github.com/espocrm/espocrm/b...ields/phone.js
        And only you have to decide where the data has to be stored. Method fetch in view define, how the data is sent to the server. And on the server you has to define. how is stored (for example this field could have jsonObject type and will be stored in one column in the table and couldn't be searchable or define own tables and store this data in your table)

        Email addresses and Phone numbers are stored in own tables

        Comment


        • #5
          Thanks Tanya for clearing this up!

          Comment


          • #6
            Sorry phil you have follow the same logic as for phone.js and emails in order to store the data in a new table for the multiple addresses?

            Comment

            Working...
            X