Announcement

Collapse
No announcement yet.

Create custom field

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

  • Create custom field

    I want to create field. Like int ,like varchar. I want it to appear in the Admin panel.
    Attached Files

  • #2

    Comment


    • #3
      Thanks savior tanya

      Comment


      • #4
        Hey tanya ,

        I did. It worked. But it does not add field to the table.I get this error.

        [2018-04-03 07:28:12] Espo.ERROR: Display Error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'lead.tckimlik' in 'field list', Code: 42S22 URL: /api/v1/Lead?maxSize=20&offset=0&sortBy=createdAt&asc=fals e [] []

        Comment


        • #5
          did you define fieldDefs option?

          Comment


          • #6
            It looks like this when you save this custom entityDefs. But I want the type of int.

            Code:
            "tcnumara": {
            "type": "identification",
            "required": false,
            "audited": false,
            "tooltip": false,
            "isCustom": true
            }

            Comment


            • #7
              you need to define this option in field definition
              /custom/Espo/Custom/Resources/metadata/fields/identification.json

              read /application/Espo/Resources/metadata/fields/wysiwyg.json fieldDefs option

              Comment


              • #8
                It's work great job!

                Comment

                Working...
                X