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 (Moderator: Dave Greenberg) »
  • Hiding fields with empty values
Pages: [1]

Author Topic: Hiding fields with empty values  (Read 1035 times)

areaten

  • Guest
Hiding fields with empty values
August 18, 2009, 05:52:36 pm
For viewing profiles, is there a way to hide fields that are empty? They need to display when they have a value entered for them.

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: Hiding fields with empty values
August 18, 2009, 06:14:36 pm

you can do this via the pageRun hook and modify the values displayed by the template

take a look at the code in: http://svn.civicrm.org/sfschool/trunk/drupal/sfschool/sfschool.module

the function: sfschool_civicrm_pageRun

modifies the values displayed in the custom data tab

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 (Moderator: Dave Greenberg) »
  • Hiding fields with empty values

This forum was archived on 2017-11-26.