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 Profiles (Moderator: Dave Greenberg) »
  • Colour-coding custom fields?
Pages: [1]

Author Topic: Colour-coding custom fields?  (Read 478 times)

idea15

  • I’m new here
  • *
  • Posts: 4
  • Karma: 2
  • CiviCRM version: 4.4.6
  • CMS version: WordPress
  • MySQL version: 5.5.32-cll
  • PHP version: 5.3.27
Colour-coding custom fields?
January 30, 2014, 03:23:29 am
Hello there,

I'm developing a site for a client who are keen on having a set of custom fields colour-coded to match the system they use in their office. If you can picture the little rainbow coloured stickers on the side of file folders in a doctor's office, that's the general idea. If I tick a box for X disease they want that disease's colour to appear somewhere on the database record.

What's the best way to do this?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Colour-coding custom fields?
January 30, 2014, 04:56:18 am
I would use an "extra" template file as per http://book.civicrm.org/developer/current/techniques/templates/
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

idea15

  • I’m new here
  • *
  • Posts: 4
  • Karma: 2
  • CiviCRM version: 4.4.6
  • CMS version: WordPress
  • MySQL version: 5.5.32-cll
  • PHP version: 5.3.27
Re: Colour-coding custom fields?
August 27, 2014, 01:22:28 pm
I ended up doing this with css and jquery:

http://idea15.wordpress.com/2014/08/26/how-to-colour-code-data-inputs-in-the-wordpress-admin-interface/

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: Colour-coding custom fields?
August 27, 2014, 03:51:46 pm

thx for posting such a detailed blog post.definitely will help other folks down the road

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 Profiles (Moderator: Dave Greenberg) »
  • Colour-coding custom fields?

This forum was archived on 2017-11-26.