Specifically, text areas in the edit mode are small. Would like to be able to resize them.
Thanks!
Specifically, text areas in the edit mode are small. Would like to be able to resize them.
Thanks!
You cannot do this through Studio, but you can do this fairly simply in the code. (I vaguely recall that 6.0 plans to add this to Studio, but check that).
Modify editviewdefs.php for your module containing the field whose size you want to change and add a section for displayParams with the size you want. For example, here are two examples from my Accounts module from the fiile <sugarroot>/custom/modules/Accounts/metadata/editviewdefs.php:
PHP Code:6 =>
array (
0 =>
array (
'name' => 'description',
'displayParams' =>
array (
'cols' => 80,
'rows' => 6,
),
'label' => 'LBL_DESCRIPTION',
),
),
The first sample sets a bigger rows and columns for the description field. The second example sets the size for a custom field in a text box (rather than a textarea).PHP Code:8 =>
array (
0 =>
array (
'name' => 'seats_mzcad_ml_c',
'displayParams' =>
array (
'size' => 6,
),
'label' => 'LBL_SEATS_MZCAD_ML',
),
Phil
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks