How to disable default fields in Lead?

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • theBuzzyCoder
    replied
    This is one more solution where you can use to do the same with little more benefits:
    https://forum.espocrm.com//forum/gen...3690#post43690


    Code:
     {
        "fields": {
            "createdOpportunity": {
                "skipOrmDefs": true,
                "disabled": true,
                "customizationDisabled": true,
                "notStorable": true
            }
        }
    }
    The idea of the solution proposed in the above link is that it will wipe out the field from showing up in Entity Manager and Layout Manager so that the CRM Admin will not get confused with fields which are not being used or populated.

    Thanks for the help tanya . Your solution also worked for me!
    Last edited by theBuzzyCoder; 11-24-2018, 11:36 AM.

    Leave a comment:


  • tanya
    replied
    if you don't need it in database, set "notStorable": true
    if it is not created yet in the database, it won't be created

    Leave a comment:


  • theBuzzyCoder
    replied
    Hi tanya ,

    That's not what I am looking for. Basically I don't want the rebuild / Espo installer to create a created_opportunity_id field in database or createdOpportunity to show up in my Entity Manager. Is there anyway I can achieve that?

    For example, an entity can be disabled by adding disabled = true in Resources/metadata/scopes/Entity.json

    Code:
    {
        "disabled": true
    }
    In the same way, can I add something in "entityDefs.Entity.fields.fieldName" to disable field?

    Thanks for the help!

    Leave a comment:


  • tanya
    replied
    Hello,
    you can override convert Lead Service method or reset these links in formula

    Leave a comment:


  • theBuzzyCoder
    started a topic How to disable default fields in Lead?

    How to disable default fields in Lead?

    Hi tanya ,

    Is there a way to disable default fields like createdOpportunity in Lead. Basically, I no longer need an association from lead to opportunity.
Working...