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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Hide fields by Membership Type
Pages: [1]

Author Topic: Hide fields by Membership Type  (Read 574 times)

LoganBear

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.67
  • PHP version: 5.3.28
Hide fields by Membership Type
October 09, 2010, 11:04:55 am
I've been trying to hide or show a section of my Membership contribution form based upon which membership type is selected.  I played and played with showHideByFieldValue, but I can't figure out the reference to the membership type as a trigger.  I got the target worked out, though.

What I'm attempting to do is ask for Student information (particularly School) if the Student membership type is selected.  When the other types (Individual and Family) are selected, hide the School section.  I don't know how to reference the Student membership type.  In order to test my understanding of the showHideByFieldValue function, I added a simple Student check box, so I know that the target reference is correct.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Hide fields by Membership Type

This forum was archived on 2017-11-26.