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?
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,Originally Posted by hconnorjr
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
thanks malcom, i'll give it a try. btw i'm using 4.51b
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
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
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.
yes, the problem is related only to custom dropdowns. i've modified the other dropdowns with no problem.
Originally Posted by loriarce
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
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
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks