Hey, we've setup a few multi-select boxes on our advanced search forms that we'd like to use to search. The only trouble is they seem to have a fixed width so that they won't show all of the text in the box.
How can I change the width of the fields?
Hey, we've setup a few multi-select boxes on our advanced search forms that we'd like to use to search. The only trouble is they seem to have a fixed width so that they won't show all of the text in the box.
How can I change the width of the fields?
Hi Mike
You can either:
1. override the file include/SugarFields/Fields/Multienum/SearchView.tpl modifying the style='width:150' or
2. copy the folder include/SugarFields/Fields/Multienum/ into a new one defining a new field template. his way you can modify that attribute in a new field template without modify the core file. You will need to ad the attribute
into searchdefs.php if you choose the second option.PHP Code:'type' => 'Newfield',
Cheers
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
I ran into a similar problem before. Sugar, for reasons unknown to me, sets the default length of those type of fields to 100. Unfortunately, it also doesn't let you control the width through the UI.
I solved my problem was through changing the LEN parameter for the corresponding field in vardefs.php
Regards,
Angel Magaña
Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
Blog: http://cheleguanaco.blogspot.com.
Twitter: @cheleguanaco.
________
| Projects: |_____________________________________
|
| CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
| GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
| CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
| Round Robin Leads Assignment
| Phone Number Formatter
| CaseTwit (Twitter Integration)
______________________________________________
Hmmm good suggestions.
Andopes, your #1 didn't seem to have any affect, so I might try #2, but I don't know...
Angel: I wasn't able to find the entries for my custom fields in the vardefs.php file. I'm assuming they would be under that module, right? So if it's a Contact field, it would be under /modules/Contacts/vardefs.php, right?
Thanks for your help so far.![]()
Take a look at the fields_meta_data table. It should contain the field definition.
My situation was related to a default field on a custom module, so it was in vardefs.php instead. But yours should appear in fields_meta_data.
Regards,
Angel Magaña
Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
Blog: http://cheleguanaco.blogspot.com.
Twitter: @cheleguanaco.
________
| Projects: |_____________________________________
|
| CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
| GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
| CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
| Round Robin Leads Assignment
| Phone Number Formatter
| CaseTwit (Twitter Integration)
______________________________________________
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks