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

Thread: How can you edit the Convert Lead page?

  1. #1
    grecstar is offline Member
    Join Date
    Jun 2009
    Posts
    13

    Default How can you edit the Convert Lead page?

    I've made changes to the Edit Opportunities page, but they don't seem to carry over when creating an Opportunity from Convert Lead. Any ideas?

  2. #2
    grecstar is offline Member
    Join Date
    Jun 2009
    Posts
    13

    Default Re: How can you edit the Convert Lead page?

    Such a lonely post. Can no one help me?

  3. #3
    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: How can you edit the Convert Lead page?

    You need to modify the function getWideFormBody at modules/Opportunities/OpportunityFormBase.php

    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.

  4. #4
    grecstar is offline Member
    Join Date
    Jun 2009
    Posts
    13

    Default Re: How can you edit the Convert Lead page?

    Quote Originally Posted by andopes View Post
    You need to modify the function getWideFormBody at modules/Opportunities/OpportunityFormBase.php

    Cheers
    Thanks Andopes,
    I'm in OpportunityFormBase.php. How do I:
    - Make the "Create Opportunity" box always checked
    - Make Expected Close Date Not required
    - Prefill the Opportunity name with the Account Name

    Sorry I'm so new at this.
    I greatly appreciate your help. Thank you.

  5. #5
    christianknoll's Avatar
    christianknoll is offline Sugar Community Member
    Join Date
    Nov 2008
    Location
    Vienna
    Posts
    939

    Default Re: How can you edit the Convert Lead page?

    You will need some php knowledge to do this, Either you take some lessons or you hire somebody to do it for you.

    christian.

    Quote Originally Posted by grecstar View Post
    Thanks Andopes,
    I'm in OpportunityFormBase.php. How do I:
    - Make the "Create Opportunity" box always checked
    - Make Expected Close Date Not required
    - Prefill the Opportunity name with the Account Name

    Sorry I'm so new at this.
    I greatly appreciate your help. Thank you.

  6. #6
    sandeeplakshmi is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    bangalore,India
    Posts
    20

    Default Re: How can you edit the Convert Lead page?

    hello grecstar !!
    here are the solutions for all the 3 modifications you asked for -

    1. Make the "Create Opportunity" box always checked
    sol :
    In the Leads/ConvertLead.php page check for opportunities section (Commented by //OPPORTUNITY )
    change the following line :

    $xtpl->assign('FORMBODY',"<h5 class='dataLabel'><input class='checkbox' type='checkbox' name='newopportunity' onClick='toggleDisplay(\"newoppdiv\");'> ".$mod_strings['LNK_NEW_OPPORTUNITY']."</h5><div id='newoppdiv' style='display:none'>".$oppForm->getWideFormBody('Opportunities', 'Opportunities','ConvertLead', $lead , false));

    to

    $xtpl->assign('FORMBODY',"<h5 class='dataLabel'><input class='checkbox' type='checkbox' checked name='newopportunity' onClick='toggleDisplay(\"newoppdiv\");'> ".$mod_strings['LNK_NEW_OPPORTUNITY']."</h5><div id='newoppdiv' style='display:block'>".$oppForm->getWideFormBody('Opportunities', 'Opportunities','ConvertLead', $lead , false));


    2. Make Expected Close Date Not required :
    In Opportunities/OpputunityFormBase.php under the function getWideFormBody()
    check for the line :
    <td class="dataLabel">$lbl_date_closed&nbsp;<span class="required">$lbl_required_symbol</span></td>
    change this to -
    <td class="dataLabel">$lbl_date_closed&nbsp;
    also, in the Opportunities/metadata/editviewdefs.php, in the "panels" array remove 'required'=>true' for "date_clode" -
    old : array('name'=>'date_closed', 'displayParams'=>array('required'=>true)),
    new: array('name'=>'date_closed', 'displayParams'=>array()),


    3.Prefill the Opportunity name with the Account Name :
    In Opportunities/OpputunityFormBase.php under the function getWideFormBody()
    check for the line:
    <td class="dataField"><input name='{$prefix}name' type="text" value="{$lead->opportunity_name}"></td>
    change it to:
    <td class="dataField"><input name='{$prefix}name' type="text" value="{$lead->account_name}"></td>

    you r done

  7. #7
    grecstar is offline Member
    Join Date
    Jun 2009
    Posts
    13

    Smile Re: How can you edit the Convert Lead page?

    Whooooo hoooo! Thanks Sandeep. That was perfect!
    Worked like a charm!

    Infinitely more helpful than christianknoll's response above.
    Thank you very much for spending the time to help.

  8. #8
    letto is offline Junior Member
    Join Date
    Aug 2009
    Posts
    1

    Default Re: How can you edit the Convert Lead page?

    Hi Sandeep,
    I saw your helpful response to grecstar and wondered if you could give me a help too
    Basically my is scenario is that I have Opportunities for Leads with empty account names.
    So what I would like to do is when Converting a Lead, I want to copy the Account (name) that was selected in the Lead Conversion, to the Opportunity associated to that Lead.
    Fyi: In my company the account will be populated from an external system, so at the time of Lead Conversion the account record will be there already, but we still want to make the link between account and leads in Sugar.

  9. #9
    pixprotom is offline Sugar Community Member
    Join Date
    Nov 2009
    Posts
    36

    Default Re: How can you edit the Convert Lead page?

    Hey, I am in v6.1.3 and there is no ConvertLead.php. How has this been replaced? and How can I get custom fields in Leads to be added to the Converted Account?

  10. #10
    jmertic is offline Sugar Community Manager
    Join Date
    Dec 2007
    Posts
    2,224

    Default Re: How can you edit the Convert Lead page?

    Create Lead is entirely Studio driven now, so you can use the GUI interface to edit things.

    http://developers.sugarcrm.com/docs/...n.html#1981518

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. Hide Lead Convert page from user
    By Mithun in forum Developer Help
    Replies: 6
    Last Post: 2010-12-21, 02:30 PM
  2. Customizing "Convert Lead" Page
    By ktremblay in forum Developer Help
    Replies: 6
    Last Post: 2009-04-13, 05:53 AM
  3. Replies: 0
    Last Post: 2009-02-23, 08:02 PM
  4. Replies: 1
    Last Post: 2008-09-05, 11:30 AM
  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
  •