Results 1 to 10 of 10

Thread: Customizing "Status" drop-down under "Leads"

  1. #1
    fai.hans is offline Sugar Community Member
    Join Date
    Dec 2007
    Location
    Hyderabad, India
    Posts
    21

    Exclamation Customizing "Status" drop-down under "Leads"

    I am trying to customize the status drop-down under Leads.

    I edited the drop-down using the admin panel. and was able to successfully change the same on the EditView page of leads. (screenshot attached).

    However, I am unable to add it to the search criteria under the "Advance Search" tab (screen shot).

    Do I need to edit one more layout/drop-down under the admin? Please let me know which one would be that?

    Thanks in advance.

    - Faisal
    Attached Images Attached Images   

  2. #2
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Default Re: Customizing "Status" drop-down under "Leads"

    I think you have run into one of the Sugar Bugs. There is some discussion of this over in the development forum. Do a search on the forums and I think I remember there being some coding fixes you can do.

    Good luck!
    Paris

  3. #3
    DragonflyMaster is offline Sugar Community Member
    Join Date
    Dec 2007
    Location
    Rimini, Italy
    Posts
    1,421

    Default Re: Customizing "Status" drop-down under "Leads"

    Quote Originally Posted by fai.hans
    I am trying to customize the status drop-down under Leads.

    I edited the drop-down using the admin panel. and was able to successfully change the same on the EditView page of leads. (screenshot attached).
    HI Faisal,
    how did you edit the dropdown in studio?
    I suggest you create a dropdown list with your custom values, then from studio->leads module->layout->editview modify the status dropdown making it show values from your new list.
    Quote Originally Posted by fai.hans
    However, I am unable to add it to the search criteria under the "Advance Search" tab (screen shot).

    Do I need to edit one more layout/drop-down under the admin? Please let me know which one would be that?

    Thanks in advance.

    - Faisal
    To modify the searchview according to your modifications, go in Leads module's Searchfields.php and look for this code:
    Code:
     
    'status'=> array('query_type'=>'default', 'options'=>'lead_status_dom', 'template_var' => 'STATUS_OPTIONS'),
    
    
    and change 'lead_status_dom' with your custom dropdown list.
    What do you think the cookie monster eats ?

  4. #4
    fai.hans is offline Sugar Community Member
    Join Date
    Dec 2007
    Location
    Hyderabad, India
    Posts
    21

    Default Re: Customizing "Status" drop-down under "Leads"

    I have edited the 'lead_source_dom' drop down menu through the Admin Panel 'Edit Drop Down' option.

    As I mentioned earlier its showing fine on the Edit View, the problem is only with the Advance Search panel. I am not familiar with linux. Is there a possible way of doing it through the admin panel?

    - Faisal

  5. #5
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Customizing "Status" drop-down under "Leads"

    Lead status has two dropdowns in version 4.5.1, lead_status_dom and lead_status_noblank_dom.
    lead_status_noblank_dom is used in editview, lead_status_dom in advanced search.
    You must edit both with your custom values.

  6. #6
    fai.hans is offline Sugar Community Member
    Join Date
    Dec 2007
    Location
    Hyderabad, India
    Posts
    21

    Default Re: Customizing "Status" drop-down under "Leads"

    Thanks Kuske,

    I was able to frame out that with your information.

    Might be we need to post for a bug, the lead_status_dom does not show up when selecting the leads module for editing drop down. but it does when searching for it in the "All" list.

    Thanks a lot.

    - Faisal

  7. #7
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Customizing "Status" drop-down under "Leads"

    I think it's more an indisposedness than a bug
    But perhaps a bug could solve this and other minor problems.

  8. #8
    fai.hans is offline Sugar Community Member
    Join Date
    Dec 2007
    Location
    Hyderabad, India
    Posts
    21

    Default Re: Customizing "Status" drop-down under "Leads"

    Kuske,

    I ran into another problem after editing the dropdowns lead_status_dom & lead_status_noblank_dom. I forgot to keep the DB values identical. as a result of that, the search by 'Status' option under Advance Search is not bringing in records matching the lead_status_dom Display Values.

    Need help on editing the DB values for lead_status_dom.

    - Faisal

  9. #9
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Customizing "Status" drop-down under "Leads"

    You can change this in database with mySQL commands.

    1. with

    SELECT distinct status FROM leads;

    you get a list of all stored values in database.
    e.g.
    'Assigned'
    'Recycled'
    'New'
    'Dead'
    'In Process'
    'Converted'

    2. now you can change the incorrect values by other mySQL commands to your new database values of the dropdown for each incorrect value.
    e.g.

    UPDATE leads SET status='newValue' WHERE status='oldValue';

    let's say you want to change status value 'Dead' to 'Moriturus':

    UPDATE leads SET status='Moriturus' WHERE status='Dead' ;


    Be careful then you do this job, make a backup of the database BEFORE doing anything.

  10. #10
    fai.hans is offline Sugar Community Member
    Join Date
    Dec 2007
    Location
    Hyderabad, India
    Posts
    21

    Default Re: Customizing "Status" drop-down under "Leads"

    Got it after some research.

    Here it is: custom/include/language/en_us.lang.php

    Thanks for your help

    - Faisal

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 2009-08-13, 05:12 AM
  2. problem with customizing drop down lists
    By markoshust in forum Help
    Replies: 2
    Last Post: 2008-08-27, 01:52 PM
  3. Drop down box discussion and need help
    By ddconcert in forum General Discussion
    Replies: 1
    Last Post: 2008-03-13, 12:59 AM
  4. Manually drop scheme (5.0 upgrade) ?
    By niallhannon in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2008-01-07, 05:41 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
  •