Make Custom Fields Word Wrap Vertically?

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
ktang
Posts: 6
Joined: 17 Mar 2006, 11:20

Make Custom Fields Word Wrap Vertically?

Post by ktang »

Sometimes our reporters have to input many words in the Custom Fields.
Is there any possibilities that Custom Fields would be able to be wrapped vertically as necessary just like "Description" textbox?

Tried to look for a hint in

Code: Select all

custom_field_api.php
, but not having any luck.
ktang
Posts: 6
Joined: 17 Mar 2006, 11:20

Post by ktang »

Think I got it.

Repalcing line 1199 to line 1205 with the following codes does good to me:

Code: Select all

			echo '<textarea type="text" name="custom_field_' . $t_id . '" cols="80" rows="3" wrap="virtual"';
			if( 0 < $p_field_def['length_max'] ) {
				echo ' maxlength="' . $p_field_def['length_max'] . '"';
			} else {
				echo ' maxlength="255"';
			}
			echo ' value="' . $t_custom_field_value .'"></textarea>';
Post Reply