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) »
  • Multiple Choice Options Height
Pages: [1]

Author Topic: Multiple Choice Options Height  (Read 1165 times)

kmac

  • Guest
Multiple Choice Options Height
January 28, 2008, 01:44:33 pm
Hi,

How can I change the display height of the Multiple Choice Options field, so that a user will see more options in the window?
I had to input a list of instruments for users to select and there are 155 instruments listed.

By default only five options are viewable without scrolling - I would like to add to this so that it's more user friendly.

Thanks for any help with this in advance.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Multiple Choice Options Height
January 28, 2008, 05:15:54 pm
Unfortunately, this value is currently hard-coded. If you want to modify it, you'll need to hack the code by changing the size attribute at around line 426 of CRM/Core/BAO/CustomField.php:

Code: [Select]
            $qf->addElement('select', $elementName, $label, $selectOption,  array("size"=>"5","multiple"));

... although - it might be possible for you to over-ride that attribute by adding a directive to civicrm.css for input type select and class="form-select". You'll have to experiment with that and see if that works and is easier.
Protect your investment in CiviCRM by  becoming a Member!

kmac

  • Guest
Re: Multiple Choice Options Height
January 29, 2008, 08:09:30 am
Hi,

Thanks so much for replying!
I had tried the css route before posting and it wasn't taking, and trying to find where it was hard coded had me pulling my hair out.

BTW, wonderful module!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Multiple Choice Options Height

This forum was archived on 2017-11-26.