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

Thread: custom dropdowns don't work in OS 4.51?

  1. #1
    hconnorjr is offline Sugar Community Member
    Join Date
    Mar 2006
    Posts
    30

    Default custom dropdowns don't work in OS 4.51?

    attempted to make custom dropdowns in the open source but no luck. is this reserved for one of the other versions or is my version just not working properly?

  2. #2
    malcolmh's Avatar
    malcolmh is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Aug 2004
    Posts
    1,712

    Default Re: custom dropdowns don't work in OS 4.51?

    Quote Originally Posted by hconnorjr
    attempted to make custom dropdowns in the open source but no luck. is this reserved for one of the other versions or is my version just not working properly?
    Hi,

    Are you using 4.5.1 or 4.5.1b. With 4.5.1 it should work, with 4.5.1b there is a bug which creates a multi select list instead of a drop down list.

    Workaround, make the following changes in the file:

    modules/DynamicFields/templates/Fields/TemplateEnum.php

    function get_html_edit(){
    $this->prepare();
    $xtpl_var = strtoupper( $this->name);
    return "<select title='{" . $xtpl_var."_HELP}' name=\"". $this->name . "\">{OPTIONS_".$xtpl_var. "}</select>";
    }

    function get_html_search() {
    $this->prepare();
    $xtpl_var = strtoupper( $this->name);
    return '<select name="'. $this->name . '[]" size="3" title="{' . $xtpl_var .'_HELP}" multiple="multiple">{OPTIONS_'. $xtpl_var. '}</select>';
    }

    Hope this helps
    Cheers Malcolm

    Genius4U Limited - Ingenious simple IT solutions for you / Genial einfache IT Lösungen für Sie
    http://www.genius4u.com or http://www.genius4u.de

  3. #3
    hconnorjr is offline Sugar Community Member
    Join Date
    Mar 2006
    Posts
    30

    Default Re: custom dropdowns don't work in OS 4.51?

    thanks malcom, i'll give it a try. btw i'm using 4.51b

  4. #4
    saradoo is offline Sugar Community Member
    Join Date
    Sep 2005
    Posts
    14

    Default Re: custom dropdowns don't work in OS 4.51?

    Malcolm,

    I'm using 4.5.1b as well and have noticed what I think is a similar problem. However, unless I'm just blind as a bat, there is no function get_html_search() in my version of TemplateEnum.php.

    I've created a custom drop down list, and a custom field that uses that list with a default value. I've added the field to Contacts via studio (edit and detail view). No matter which option I choose from the drop down and save, it only saves the default.

    I created this drop down because a custom field from a previous version of Sugar also no longer will allow updates, so I thought I would create a new custom field to see where the problem would lie. Neither one will allow me to change its value. The older field values are stuck where they were (not necessarily the default).

    Tom

  5. #5
    loriarce is offline Sugar Team Member
    Join Date
    Jun 2006
    Posts
    58

    Default Re: custom dropdowns don't work in OS 4.51?

    There is a known issue with custom dropdown fields in 4.5.1 where dropdowns display as multi select boxes. I am not sure if this is your issue, but I am attaching the fix to that issue just in case.

    Replace ./modules/DynamicFields/templates/Fields/TemplateEnum.php with the attached file.

    Hope this helps.

    Lori
    Attached Files Attached Files

  6. #6
    saradoo is offline Sugar Community Member
    Join Date
    Sep 2005
    Posts
    14

    Default Re: custom dropdowns don't work in OS 4.51?

    Lori,

    It appears that the fix doesn't correct my particular problem. The problem only appears to be related to custom fields with custom drop downs. For example, I've edited the drop down list on lead source for the Contacts module and I can make changes and save them every time. My custom field with its drop down, no luck. This custom field worked in a much earlier version of Sugar, but I can't say in which version it disappeared.

    This is a significant issue for us. Any other thoughts would be appreciated.

  7. #7
    hconnorjr is offline Sugar Community Member
    Join Date
    Mar 2006
    Posts
    30

    Default Re: custom dropdowns don't work in OS 4.51?

    yes, the problem is related only to custom dropdowns. i've modified the other dropdowns with no problem.

  8. #8
    monicabohanon is offline Junior Member
    Join Date
    Apr 2007
    Posts
    3

    Default HELP! custom dropdowns don't work in OS 4.51?

    Quote Originally Posted by loriarce
    There is a known issue with custom dropdown fields in 4.5.1 where dropdowns display as multi select boxes. I am not sure if this is your issue, but I am attaching the fix to that issue just in case.

    Replace ./modules/DynamicFields/templates/Fields/TemplateEnum.php with the attached file.

    Hope this helps.

    Lori

    Hello,
    I'm having a similar issue with my custom dropdown, although the values are not saving when the options are selected in the edit view. I have manually fixed the issue with the multi-select dropdown, but am still having major issues with the field retaining it's value. There have been absolutely NO replies to my request for help from sugar dev. Can you please take a look at my post here: http://www.sugarcrm.com/forums/showt...2392#post72392 and offer a suggestion? The version of SugarCRM I'm using is Version 4.5.1b (Build 1246) .

    Thanks in advance!
    ~M







    http://www.sugarcrm.com/forums/showt...2392#post72392
    Last edited by monicabohanon; 2007-04-09 at 03:44 PM. Reason: misspelling

  9. #9
    saradoo is offline Sugar Community Member
    Join Date
    Sep 2005
    Posts
    14

    Default Re: custom dropdowns don't work in OS 4.51?

    If it helps the Dev team to find a solution, I turned on auditing for my custom drop down list and field (Contacts module). Here is the Change Log for what Sugar traps when I changed and saved a new selection in my drop down list

    Fields audited in this module: Do Not Call, Email, Office Phone, Assigned to, Revised Student Status
    Field: Revised Student Status
    Old Value: Potential Student
    New Value: Array
    Changed By: tom
    Change Date: 2007-04-09 13:00

    Instead of saving the value from the array, it saved a value of Array (?) instead of "Graduate" (as an example).
    BTW, I did change /modules/DynamicFields/templates/Fields/TemplateEnum.php as Lori suggested.

    Tom

  10. #10
    devknob is offline Member
    Join Date
    Apr 2007
    Posts
    8

    Default Re: custom dropdowns don't work in OS 4.51?

    same here, its 4:59 in the morning, ive been tryiung to solve this one since 10pm last night.- i dont see how a crm can survive with errors and bugs like this with no fixes. in fact, if i wasnt brand new at all this, this could potentially ruin my business for a couple days or until someone decided to post a fix. dam tired

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. Replies: 8
    Last Post: 2011-11-28, 03:36 AM
  2. problem saving custom dropdowns using frontend
    By kevinjj33 in forum Developer Help
    Replies: 10
    Last Post: 2007-04-12, 07:55 AM
  3. Asterisk Patch 1.1.0 Crash on logon
    By skyracer in forum Help
    Replies: 6
    Last Post: 2006-07-08, 06:30 AM
  4. Replies: 7
    Last Post: 2006-06-06, 07:56 PM
  5. Custom Fields no longer work in 4.0
    By gsadmin in forum Help
    Replies: 7
    Last Post: 2005-12-30, 04:42 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
  •