Results 1 to 5 of 5

Thread: convert lead - add industry and type

  1. #1
    raynor is offline Sugar Community Member
    Join Date
    Nov 2008
    Location
    sydney
    Posts
    71

    Default convert lead - add industry and type

    When converting a lead, the business guys wanted to add in the Account Industry and Account Type to the convert section.

    They also wanted the Opportunity Type added to the Opportunity section.

    I got the Opportunity part done ok, but the Account section is not working yet, using the same approach.

    I edited modules/Account/AccountFormBase.php and added the following code, however it is not populating the drop down fields. Any ideas?

    <tr>
    <td nowrap class="dataLabel">Type: <span class="required">${lbl_required_symbol}</span></td>
    </tr>
    <tr>
    <td nowrap class="dataField"><select name='{$prefix}account_type'>
    EOQ;
    $form .= get_select_options_with_id($app_list_strings['account_type_dom'], "");
    $form .= <<<EOQ
    </select></td>
    </tr>

    <tr>
    <td nowrap class="dataLabel">Industry: <span class="required">${lbl_required_symbol}</span></td>
    </tr>
    <tr>
    <td nowrap class="dataField"><select name='{$prefix}industry'>
    EOQ;
    $form .= get_select_options_with_id($app_list_strings['industry_dom'], "");
    $form .= <<<EOQ
    </select></td>
    </tr>
    sugar professional 6.4.0

  2. #2
    websitedesigner is offline Senior Member
    Join Date
    Jan 2010
    Posts
    58

    Default Re: convert lead - add industry and type

    Hey mate how did you get on with this one?
    Dan Norris - Director Web Circle
    Brisbane Web Design Web Circle | MYOB Sugar Sales Import | Small Business Website Design Blog

  3. #3
    raynor is offline Sugar Community Member
    Join Date
    Nov 2008
    Location
    sydney
    Posts
    71

    Default Re: convert lead - add industry and type

    I'm now using it.
    It's not upgrade-safe, and it relied on me hardcoding the dropdown values, so I have to manually keep it up to date. Also need to be careful with changes to the displayed name versus the internal name.

    So I added stuff like this before the EOQ

    <tr><td nowrap class="dataLabel">Industry: <span class="required">${lbl_required_symbol}</span></td></tr>
    <tr>
    <td nowrap class="dataField"><select name='{$prefix}industry'>
    <option label="" value=""></option>
    <option label="Advertising and Communications" value="Advertising and Communications">Advertising and Marketing</option>
    <option label="Associations" value="Associations">Associations</option>
    <option label="Banking and Finance" value="Banking and Finance">Banking and Finance</option>
    <option label="Education and Training" value="Education and Training">Education and Training</option>
    <option label="Employment and HR Services" value="Employment and HR Services">Employment and HR Services</option>
    <option label="FCMG" value="FCMG">FCMG</option>
    <option label="Hospitality and Tourism" value="Hospitality and Tourism">Hospitality and Tourism</option>
    <option label="Insurance and Superannuation" value="Insurance">Insurance and Superannuation</option>
    <option label="Other" value="Other">Other</option>
    </select></td>
    </tr>
    sugar professional 6.4.0

  4. #4
    jrp918 is offline Senior Member
    Join Date
    Aug 2010
    Location
    Phoenix Arizona
    Posts
    27

    Default Re: convert lead - add industry and type

    Any field items that you want to have converted must be identically labeled in the STUDIO under

    Leads -> Fields, Labels and Layouts

    Accounts -> Fileds, Labels and Layouts

    So if you want a custom field carried over for example: "item_c" would be created in "Fields" identically in all the places you want it carried to. Then just add it to the Layout Views and it will show up there. No need for any php modifications

    Good luck

  5. #5
    jrp918 is offline Senior Member
    Join Date
    Aug 2010
    Location
    Phoenix Arizona
    Posts
    27

    Default Re: convert lead - add industry and type

    Hi raynor

    Did you get the Account Type to auto populate during the convert lead using the code you posted? I was wondering if the code you posted was working and how you got it to work with "TYPE"?

    Thanks
    Jeff
    Arizona, USA

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2009-02-23, 08:02 PM
  2. i cant Convert Lead
    By mahmoud.habashi in forum Help
    Replies: 1
    Last Post: 2008-10-05, 01:35 PM
  3. Convert Lead changes
    By kheald in forum Developer Help
    Replies: 0
    Last Post: 2008-01-22, 06:09 PM
  4. show type and industry in Account List View
    By fabpenso in forum General Discussion
    Replies: 3
    Last Post: 2005-06-07, 06:14 PM

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
  •