More Colored Enum fields

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pablo
    Senior Member
    • Aug 2015
    • 177

    More Colored Enum fields

    Hi!

    We use colors for opportunities stages and it works AMAZING! We see there are 6 styles: Default – black; Success – green; Danger – red; Warning – yellow; Info – violet; Primary – blue.

    Is there any way we can add more styles/colors?

    Thanks a lot.
  • Maximus
    Senior Member
    • Nov 2018
    • 2731

    #2
    Hello Pablo,
    There is no such ability to add or change these colors via UI. It should be done by code customization.

    Comment

    • Pablo
      Senior Member
      • Aug 2015
      • 177

      #3
      Hi Maximus ,

      Thanks for your reply. Can you please guide us which files we need to modify? We can give it a try.

      Thanks again.

      Comment

      • Maximus
        Senior Member
        • Nov 2018
        • 2731

        #4
        Pablo, unfortunately, I don't know where to find it.
        The only I was able to find is this file /client/src/views/admin/field-manager/fields/options-with-style.js.
        I would like to migrate this topic into the Developer Help branch. Hope someone might help you.

        Comment

        • telecastg
          Active Community Member
          • Jun 2018
          • 907

          #5
          Hi Pablo, check this post, I think this is the script that you are looking for. https://forum.espocrm.com/forum/deve...1584#post61584

          Comment

          • Pablo
            Senior Member
            • Aug 2015
            • 177

            #6
            Hi telecastg ,

            Thanks for the help. I will check the post.

            Have a great day.

            Comment


            • telecastg
              telecastg commented
              Editing a comment
              You're welcome
          • esforim
            Active Community Member
            • Jan 2020
            • 2204

            #7
            Alternatively you can also create a theme that will allow you to change the colors, not sure if you can add new additional option too.

            See dubas' theme to see how he did it, between these two version is when emillod made the update

            https://forum.espocrm.com/forum/exte...8155#post68155

            Comment

            Working...