Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Help!!!! Missing "Convert Target" and "Convert Lead" Button

  1. #1
    qps
    qps is offline Junior Member
    Join Date
    Jan 2009
    Posts
    2

    Question Help!!!! Missing "Convert Target" and "Convert Lead" Button

    The "Convert Target" button and "Convert Lead" alongwith "Manage Subscriptions" button is missing in the respective Target and Lead Module.

    Please advise if anyone else is facing this issue and what we can do to rectify this.

    Thank you

    CRM version: CE 5.2.0
    MySQL database

  2. #2
    vishwasrao's Avatar
    vishwasrao is offline A Prolific Poster
    Join Date
    Sep 2008
    Location
    Pune,Maharashtra,India
    Posts
    385

    Smile Re: Help!!!! Missing "Convert Target" and "Convert Lead" Button

    Hi qps,
    Have u changed code.The button "Convert Lead" is managed in file /modules/Leads/metadata/detailview.php around line line no.45
    Vishwasrao Salunkhe
    vishwasrao.salunkhe@gmail.com
    Fan Of Sachin Tendulkar
    Operating System :- Windows XP
    PHP Version:- 5.3
    Apache :-2.2.11
    MYSQL :-5.1.36

  3. #3
    qps
    qps is offline Junior Member
    Join Date
    Jan 2009
    Posts
    2

    Default Re: Help!!!! Missing "Convert Target" and "Convert Lead" Button

    Hi Vishwasrao:

    I havent changed any code in the files.
    I did change the detail view layout through Studio.

    QPS

  4. #4
    barbkev is offline Junior Member
    Join Date
    Jul 2008
    Posts
    2

    Default Re: Help!!!! Missing "Convert Target" and "Convert Lead" Button

    Any updates on this? I'm having the same problem. The code appears to be there, but I don't have a button anymore.

  5. #5
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Help!!!! Missing "Convert Target" and "Convert Lead" Button

    Check if the button definition exist into custom/modules/Leads/metadata/detailview.php.
    Are all users facing this same issue or only a specific one?

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  6. #6
    nybanker is offline Junior Member
    Join Date
    Mar 2007
    Posts
    4

    Default Re: Help!!!! Missing "Convert Target" and "Convert Lead" Button

    I am experiencing the same problem. We added a few custom fields and the convert button is now missing.

    Anyone has any feedback on how we can correct this. We have a sugar 4.5 install upgraded to 5.2. Everything was working perfectly befored I added a few custom fields to leads.
    Ishwari

  7. #7
    letrium is offline Sugar Community Member
    Join Date
    Dec 2008
    Posts
    614

    Smile Re: Help!!!! Missing "Convert Target" and "Convert Lead" Button

    Hi!

    Try to find code below marked black:

    Code:
    $viewdefs['Leads']['DetailView'] = array (
    	'templateMeta' => array (
    		'preForm' => '<form name="vcard" action="vCard.php"><input type="hidden" name="contact_id" value="{$fields.id.value}"><input type="hidden" name="module" value="Lead"></form>',
    		'form' => array (
    			'buttons' => array (
    				'EDIT',
    				'DUPLICATE',
    				'DELETE',
    				array (
    					'customCode' => '<input title="{$MOD.LBL_CONVERTLEAD_TITLE}" accessKey="{$MOD.LBL_CONVERTLEAD_BUTTON_KEY}" type="button" class="button" onClick="document.location=\'index.php?module=Leads&action=ConvertLead&record={$fields.id.value}\'" name="convert" value="{$MOD.LBL_CONVERTLEAD}">'
    				),
    Just add it if not exist

    Cheers,

  8. #8
    bedek is offline Junior Member
    Join Date
    Nov 2008
    Posts
    2

    Default Re: Help!!!! Missing "Convert Target" and "Convert Lead" Button

    First I am not a programmer but tinkered around to find a solution to fix this problem that worked for me.

    1. In path ../custom/modules/Leads/metadata find file detailviewdefs.php (make a copy in case you need to revert )

    2. Edit file to replace section below in Bold

    'DetailView' =>
    array (
    'templateMeta' =>
    array (
    'form' =>
    array (
    'buttons' =>
    array (
    0 => 'EDIT',
    1 => 'DUPLICATE',
    2 => 'DELETE',
    3 =>
    array (
    'customCode' => '<input title="{$MOD.LBL_CONVERTLEAD_TITLE}" accessKey="{$MOD.LBL_CONVERTLEAD_BUTTON_KEY}" type="button" class="button" onClick="document.location=\'index.php?module=Lead s&action=ConvertLead&record={$fields.id.value}\' " name="convert" value="{$MOD.LBL_CONVERTLEAD}">',
    ),
    4 =>
    array (
    'customCode' => '<input title="{$APP.LBL_DUP_MERGE}" accessKey="M" class="button" onclick="this.form.return_module.value=\'Leads\'; this.form.return_action.value=\'DetailView\';this. form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Step1\'; this.form.module.value=\'MergeRecords\';" type="submit" name="Merge" value="{$APP.LBL_DUP_MERGE}">',
    ),
    5 =>
    array (
    'customCode' => '<input title="{$APP.LBL_MANAGE_SUBSCRIPTIONS}" class="button" onclick="this.form.return_module.value=\'Leads\'; this.form.return_action.value=\'DetailView\';this. form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Subscriptions\'; this.form.module.value=\'Campaigns\';" type="submit" name="Manage Subscriptions" value="{$APP.LBL_MANAGE_SUBSCRIPTIONS}">',
    ),
    ),
    'headerTpl' => 'modules/Leads/tpls/DetailViewHeader.tpl',
    ),

    'maxColumns' => '2',
    'widths' =>

    3. Rename detailview.tpl to detailview.tpl.sav in path ../cache/modules/Leads ( so you can revert if needed )
    Open up your SugarCRM Leads Detaikl View and the detailview.tpl will be automatically recreated.

    4. Your Buttons for Convert Lead and Mange Subscriptions should now be there.

  9. #9
    jamesfw is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    32

    Thumbs down Re: Help!!!! Missing "Convert Target" and "Convert Lead" Button

    This code didn't work for me. I ended up getting a blank Details page.

    Quote Originally Posted by bedek View Post
    First I am not a programmer but tinkered around to find a solution to fix this problem that worked for me.

    1. In path ../custom/modules/Leads/metadata find file detailviewdefs.php (make a copy in case you need to revert )

    2. Edit file to replace section below in Bold

    'DetailView' =>
    array (
    'templateMeta' =>
    array (
    'form' =>
    array (
    'buttons' =>
    array (
    0 => 'EDIT',
    1 => 'DUPLICATE',
    2 => 'DELETE',
    3 =>
    array (
    'customCode' => '<input title="{$MOD.LBL_CONVERTLEAD_TITLE}" accessKey="{$MOD.LBL_CONVERTLEAD_BUTTON_KEY}" type="button" class="button" onClick="document.location=\'index.php?module=Lead s&action=ConvertLead&record={$fields.id.value}\' " name="convert" value="{$MOD.LBL_CONVERTLEAD}">',
    ),
    4 =>
    array (
    'customCode' => '<input title="{$APP.LBL_DUP_MERGE}" accessKey="M" class="button" onclick="this.form.return_module.value=\'Leads\'; this.form.return_action.value=\'DetailView\';this. form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Step1\'; this.form.module.value=\'MergeRecords\';" type="submit" name="Merge" value="{$APP.LBL_DUP_MERGE}">',
    ),
    5 =>
    array (
    'customCode' => '<input title="{$APP.LBL_MANAGE_SUBSCRIPTIONS}" class="button" onclick="this.form.return_module.value=\'Leads\'; this.form.return_action.value=\'DetailView\';this. form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Subscriptions\'; this.form.module.value=\'Campaigns\';" type="submit" name="Manage Subscriptions" value="{$APP.LBL_MANAGE_SUBSCRIPTIONS}">',
    ),
    ),
    'headerTpl' => 'modules/Leads/tpls/DetailViewHeader.tpl',
    ),

    'maxColumns' => '2',
    'widths' =>

    3. Rename detailview.tpl to detailview.tpl.sav in path ../cache/modules/Leads ( so you can revert if needed )
    Open up your SugarCRM Leads Detaikl View and the detailview.tpl will be automatically recreated.

    4. Your Buttons for Convert Lead and Mange Subscriptions should now be there.

  10. #10
    jamesfw is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    32

    Angry Re: Help!!!! Missing "Convert Target" and "Convert Lead" Button

    Quote Originally Posted by jamesfw View Post
    This code didn't work for me. I ended up getting a blank Details page.
    I found the error. (extra line or code, i accidently rewrote.)
    Now I see the detail page and the Convert Button, and Manage Subscriptions Button.

    But when I click the Convert Button I get a page that says "Bad data passed in; Return to Home"

    Where did I go wrong?

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 10
    Last Post: 2008-08-20, 10:17 PM
  2. editing "leads: convert lead"
    By jeffbrumbaugh in forum Help
    Replies: 0
    Last Post: 2008-03-17, 02:21 PM
  3. Replies: 1
    Last Post: 2008-02-08, 03:13 PM
  4. Replies: 0
    Last Post: 2007-03-23, 12:58 PM
  5. Still unable to edit fields in "convert lead"
    By extremesanity in forum Feature Requests
    Replies: 6
    Last Post: 2005-08-26, 02:07 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •