Results 1 to 5 of 5

Thread: Anyway to fill in the inductry field while creating a lead ?

  1. #1
    Casio2000 is offline Member
    Join Date
    Oct 2008
    Posts
    10

    Question Anyway to fill in the inductry field while creating a lead ?

    Hi,

    Is there anyway to fill in the industry field early in the the stage of creating the lead ? not while converting the lead to an account ?

    Thanks a lot

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Anyway to fill in the inductry field while creating a lead ?

    Yes, but it requires custom code to do so. Create a industry dropdown field for Leads using the same dom as that in accounts. Then when you do the conversion you'll have to override modules/Leads/ConvertLead.php to pass that field to the newly created account. Look for:
    $account= $accountForm->handleSave('Accounts',false, false);

    Then do something like:
    $account->industry = $lead->industry_c;
    $account->save();

    You could instead add the industry field to the Account convert screen by going to modules/Accounts/AccountFromBase.php and adding it to getWideFormBody().

  3. #3
    Casio2000 is offline Member
    Join Date
    Oct 2008
    Posts
    10

    Default Re: Anyway to fill in the inductry field while creating a lead ?

    Quote Originally Posted by eggsurplus
    Yes, but it requires custom code to do so. Create a industry dropdown field for Leads using the same dom as that in accounts. Then when you do the conversion you'll have to override modules/Leads/ConvertLead.php to pass that field to the newly created account. Look for:
    $account= $accountForm->handleSave('Accounts',false, false);

    Then do something like:
    $account->industry = $lead->industry_c;
    $account->save();

    You could instead add the industry field to the Account convert screen by going to modules/Accounts/AccountFromBase.php and adding it to getWideFormBody().
    1st - thanks for taking the time to help - much appreciated
    Considering I am not a developer, please excuse my question if it seemed dump.

    Should I replace the 1st line with those 2 lines or what ?

    right now it looks like that

    PHP Code:
        require_once('modules/Notes/NoteFormBase.php');

        
    $noteForm = new NoteFormBase();

        if(isset(
    $account)){



            
    $_POST['AccountNotesparent_id'] = $account->id;
            
    $accountnote$noteForm->handleSave('AccountNotes',falsefalse);

            }
        if(isset(
    $contact)){



            
    $contactnote$noteForm->handleSave('ContactNotes',falsefalse);

            }
        if(isset(
    $opportunity)){



            
    $opportunitynote$noteForm->handleSave('OpportunityNotes',falsefalse);
            } 
    what should it look like ? and if I want to add in the website field too.

    Thanks once more

  4. #4
    Casio2000 is offline Member
    Join Date
    Oct 2008
    Posts
    10

    Default Re: Anyway to fill in the inductry field while creating a lead ?

    Any help would be much appreciated.

    Thanks

  5. #5
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Anyway to fill in the inductry field while creating a lead ?

    If you're not a developer I highly recommend that you find someone that is for this. It will save you many headaches and potential troubles.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. problemi step 6 di SugarSuite-Full-4.0.1h
    By lucia in forum Italiano
    Replies: 0
    Last Post: 2006-12-27, 08:50 AM
  2. Replies: 1
    Last Post: 2006-10-12, 12:07 AM
  3. 4.0.1 Installation Problem
    By clawton in forum Help
    Replies: 14
    Last Post: 2006-02-13, 04:17 PM
  4. Fatal error: Max
    By spokes2k4 in forum Help
    Replies: 3
    Last Post: 2006-01-15, 03:50 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
  •