Announcement

Collapse
No announcement yet.

How to make color chooser field type visible?

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

  • How to make color chooser field type visible?

    Hi All,
    Am a PHP developper but am newbee to espocrm
    Please I would like to know how I can make the color chooser field type selectable for a module where show in the image.
    When I look into the source code I can see that this field type is already implemented but it is not selectable.

  • #2
    Hi,

    Check https://docs.espocrm.com/development/custom-field-type/

    You need to define it in metadata. Set view of the actual view file for the colorpicker field. 'views/fields/colorpicker'.

    Comment


    • #3
      It worked. Thank you

      Comment


      • #4
        Hi,
        could you please share the code?

        Comment


        • #5
          shalmaxb to make the field selectable, I just to edit this file application/Espo/Resources/metadata/fields/colorpicker.json and changed it from "notCreatable": true to "notCreatable": false

          Comment


          • espcrm
            espcrm commented
            Editing a comment
            Just a note that these file is not Upgrade safe.

          • boCyrill
            boCyrill commented
            Editing a comment
            Well received, thanks.
            Please can you suggest a safer way of doing this?

          • espcrm
            espcrm commented
            Editing a comment
            Sorry, unfortunately it out of my knowledge.
        Working...
        X