Hello,
I running Sugar OS 5.0b, I need to change the width of the dropdown boxes so all the items will show in full, The width of the fields are varchar 30. How do I change the width so all my items will show up in the boxes in full,
Thanks
Garry
Hello,
I running Sugar OS 5.0b, I need to change the width of the dropdown boxes so all the items will show in full, The width of the fields are varchar 30. How do I change the width so all my items will show up in the boxes in full,
Thanks
Garry
Hi,Originally Posted by gnorman2000
I've never changed a dropdown's width, but I suppose it can be done the same way as other fields. So everything I'm telling you here is just a supposition, you'll need to check if it's correct or not.
You can change a field's width editing editviewdefs.php and/or detailviewdefs.php files.
For example, if you need to modify a dropdown in the Accounts module, open
<sugar-root>\modules\Accounts\metadata\editviewdefs.php
and see if your dropdown is defined in there. If not, open
<sugar-root>\custom\modules\Accounts\metadata\editviewdef s.php
and you'll surely find it there.
For text fields, the width is specified with the code:
'cols' => xx,
where xx is the number of columns/chars of the field.
So I suppose that if you add such code in your dropdown description it should work...
Let me know if it worked.Code:array ( 0 => array ( 'name' => 'My_Dropdown', 'label' => 'LBL_MYDROPDOWN', 'cols' => '50', ),
What do you think the cookie monster eats ?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks