Announcement

Collapse
No announcement yet.

Multiline Array?

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

  • Multiline Array?

    I am introducing espo crm to my workflow so I am still learning many of its' features

    There is one thing that confuses me

    I kinda remember being able to add a field that would allow me to add single lines of text and when I press enter that would get saved and a new edit field would appear underneath for the next entry. Eventually with a number of lines entered these would be literally one below the other nicely separated.

    E.g.

    Line1
    Line2
    Line3

    Now however the closest I can do is use Array but with that one multiple lines are concatenates into a single entry separated by comma once pressing Save

    Line 1, Line 2, Line 3

    Am I missing something here or something has changed in the functionality

    I really need the neatly separated lines of entry. Is that still possible?

    Any help is very much appreciated


  • #2
    Hi
    Edit mode of array filed is multiline, other mode shows this field in single line. If you want other view, you have create own view and set it in entityDefs, like
    /application/Espo/Modules/Crm/Resources/metadata/entityDefs/Case.json

    "status": {
    "type": "enum",
    "options": ["New", "Assigned", "Pending", "Closed", "Rejected", "Duplicate"],
    "default": "New",
    "view": "views/fields/enum-styled",
    "style": {
    "Closed": "success",
    "Duplicate": "danger",
    "Rejected": "danger"
    },
    "audited": true
    },

    Your field view extends "views/fields/array", but change "detailTemplate" and function "getValueForDisplay"

    Comment

    Working...
    X