Convert Page

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • tanya
    replied
    You can do it in Administration panel as well. I'he just tested your code and get correct result

    Leave a comment:


  • theBuzzyCoder
    replied
    tanya

    Yes, I did.

    php -f clear_cache.php
    php -f rebuild.php
    log out
    login
    convert

    in that order
    Last edited by theBuzzyCoder; 02-26-2018, 11:42 AM.

    Leave a comment:


  • tanya
    replied
    Did you rebuild EspoCRM and refresh the page?

    Leave a comment:


  • theBuzzyCoder
    replied
    Hi tanya ,

    This is what i have now,


    espocrm/custom/Espo/Custom/Resources/metadata/entityDefs/Lead.json
    Code:
    {
        "convertEntityList": [
            "Contact",
            "Opportunity"
        ],
        "convertFields": {
            "Contact": {
            },
            "Opportunity": {
                "amount": "opportunityAmount",
                "leadSource": "source"
            }
        }
    }
    It is still giving me this

    Click image for larger version  Name:	data.png Views:	1 Size:	13.6 KB ID:	35042

    I just want contact and opportunity checkbox to show up.

    I have also cleared the local cache
    Last edited by theBuzzyCoder; 02-26-2018, 11:34 AM.

    Leave a comment:


  • tanya
    replied
    if I understand you well, create (look for) a file custom/Espo/Custom/Resources/metadata/entityDefs/Lead.json and leave what you need from this (got from application/Espo/Modules/Crm/Resources/metadata/entityDefs/Lead.json)
    Code:
    "convertEntityList": [
            "Account",
            "Contact",
            "Opportunity"
        ],
        "convertFields": {
            "Contact": {
            },
            "Account": {
                "name": "accountName",
                "billingAddressStreet": "addressStreet",
                "billingAddressCity": "addressCity",
                "billingAddressState": "addressState",
                "billingAddressPostalCode": "addressPostalCode",
                "billingAddressCountry": "addressCountry"
            },
            "Opportunity": {
                "amount": "opportunityAmount",
                "leadSource": "source"
            }
        },

    Leave a comment:


  • Ryan_WHR
    replied
    Thank you i understand i can edit the details of the layout but i can not remove a option altogether so i just need to remove the code. Could you point me to the right area of code

    Leave a comment:


  • tanya
    replied
    Hi.
    You can do it even in Layout Manager
    Account, Contact and Opportunity have "Convert Lead" view.
    for example - {pathToEspo}/#Admin/layouts/scope=Contact&type=detailConvert

    Leave a comment:


  • Ryan_WHR
    started a topic Convert Page

    Convert Page

    I am looking for the lead convert layout page code. I need to completely remove 2 options so they are not visible in the layout

    Could someone point me in the right direction i am trying to find the code to edit "preferably in a custom upgrade safe way"
Working...