Results 1 to 4 of 4

Thread: Change "Title"-Field in "convert leads" in the leads module?

  1. #1
    fabivomsee is offline Sugar Community Member
    Join Date
    May 2007
    Posts
    78

    Question Change "Title"-Field in "convert leads" in the leads module?

    Greetings to the Forum.

    I am wondering how to change the field: "Title" in the "convert leads" section. It seems, that sugar just takes the field: "title" from the contacts module.
    But this field is a textfield and I created a new field with a dropdownlist and wnat to implement it to be converted from leads to contacts.

    thank you for your replies.

    regards

    fabi

  2. #2
    ecrypt is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Chennai,India
    Posts
    75

    Default Re: Change "Title"-Field in "convert leads" in the leads module?

    Hi Fabi,

    Hope you are using SugarCE-5.2.0 version if yes please follow the below

    Do the changes on ContactFormBase.php (modules/Contacts /ContactFormBase.php)

    Step 1: Add this @ line number 258 $title_options=get_select_options_with_id($app_lis t_strings['title_dom'], $contact->title); (assuming you have created title_dom already )

    Step 2: on the line number 284 u could find <td class='dataField' nowrap><input name='${prefix}title' type="text" value="{$contact->title}"></td>
    change this into
    <td class='dataField'><select name='${prefix}title'>$title_options</select>

    Step3: now you can this in browser

    Hope this will help you

    Contact me in ecrypt@gmail.com for further help .

    Best
    Sen
    Best,

    Ecrypt- Sen
    ecrypt@gmail.com

  3. #3
    fabivomsee is offline Sugar Community Member
    Join Date
    May 2007
    Posts
    78

    Question Re: Change "Title"-Field in "convert leads" in the leads module?

    Thanks for your answer!
    When I do the suggested steps, I get the error:

    Parse error: syntax error, unexpected T_STRING in /xxxx/webseiten/xxxxxxx/modules/Contacts/ContactFormBase.php on line 254

    Here the Code from Line 250 to 259
    Code:
    }
    	$lbl_email_address = $mod_strings['LBL_EMAIL_ADDRESS'];
    	$salutation_options=get_select_options_with_id($app_list_strings['salutation_dom'], $contact->salutation);
    	if (isset($contact->lead_source)) {
    		$lead_source_options=get_select_options_with_id($app_list_strings['lead_source_dom'], $contact->lead_source);
    	} else {
    		$lead_source_options=get_select_options_with_id($app_list_strings['lead_source_dom'], '');
    	}
    $title_options=get_select_options_with_id($app_lis t_strings['saluation_title_list'], $contact->title);
    	$form="";
    I didn't change anything in line 254...
    please excuse the spelling mistake in "saluation"...
    hope you can help....
    Last edited by fabivomsee; 2009-03-12 at 11:30 AM.

  4. #4
    fabivomsee is offline Sugar Community Member
    Join Date
    May 2007
    Posts
    78

    Default Re: Change "Title"-Field in "convert leads" in the leads module?

    Thanks so much to Ecrypt
    There is a T-String in the Source of ecrypt... And Here is now the complete Solution of Ecrypt without the T String.. and it is working perfectly!!!

    Do the changes on ContactFormBase.php (modules/Contacts /ContactFormBase.php)

    Step 1: Add this @ line number 258 $title_options=get_select_options_with_id($app_lis t_strings['title_dom'], $contact->title); (assuming you have created title_dom already )

    Step 2: on the line number 284 u could find <td class='dataField' nowrap><input name='${prefix}title' type="text" value="{$contact->title}"></td>
    change this into
    <td class='dataField'><select name='${prefix}title'>$title_options</select>

    Step3: now you can see this in browser
    ----------------------------------
    there is just one thing missing:
    the title field under contacts still is empty...
    Last edited by fabivomsee; 2009-03-12 at 04:32 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 2008-02-08, 03:13 PM
  2. Replies: 3
    Last Post: 2007-12-18, 11:31 PM
  3. Replies: 2
    Last Post: 2007-05-24, 03:50 PM
  4. Replies: 0
    Last Post: 2007-03-14, 12:47 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
  •