CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Sizing custom data text fields
Pages: [1]

Author Topic: Sizing custom data text fields  (Read 882 times)

honeyl

  • Guest
Sizing custom data text fields
July 04, 2009, 08:23:08 pm
Is it possible to change the size of a custom data text field. I've created a text field for putting in 100- to 200-word descriptions of a company, but when I look at this when adding a new organizational contact, the input field is not very long. The length of the database field does not seem to correspond to the length of the input field at the interface level. This is mainly a concern at the admin interface, as our office staff cannot type in and edit that much text in such a short field.

Any suggestions would be appreciated.


Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Sizing custom data text fields
July 04, 2009, 10:06:44 pm
I'm not sure if it's always been there but there is a custom data field type  called 'note' rather than text which allows more data.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

honeyl

  • Guest
Re: Sizing custom data text fields
July 05, 2009, 04:50:27 am
Thank you, thank you, thank you, Forum Goddess. I didn't see that. That's exactly what I need.

Dallas36

  • Guest
Re: Sizing custom data text fields
July 05, 2009, 10:13:58 pm
The problem with this is that a NOTE does not allow the Admin to LIMIT the text/ characters in that field. The NOTE field goes on forever- well maybe not forever ;) .

I have the same problem- I want my contacts to write a 300 character description about their business and I am forced to use alphanumeric/ text so that I can limit the 300 character on the description.  It is very frustruating for my contacts to not be able to see and edit the business description.  The 300 limit is necessary for search outputs as well as we have a printed list of our providers that is space limited.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Sizing custom data text fields
July 06, 2009, 06:29:20 am

You can implement a validate hook to limit the number of characters on the custom field. Alternatively you can customize the specific templates and do it via javascript.

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Sizing custom data text fields

This forum was archived on 2017-11-26.