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 CiviEvent (Moderator: Yashodha Chaku) »
  • Custom fields visible for certain events fees only
Pages: [1]

Author Topic: Custom fields visible for certain events fees only  (Read 387 times)

steveplatz

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 7.17
  • MySQL version: 5.1.65
  • PHP version: 5.3.17
Custom fields visible for certain events fees only
January 24, 2013, 10:34:37 am
I'm scouring the docs for some hint here: I'd like to have a custom field appear after a registrant selects a specific fee. Here's the example, if someone registers as a student for the event (which is a reduced fee), they will then necessarily need to fill-in the "School name" field. Anyone better then me at this have any suggestions? Thanks!

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: Custom fields visible for certain events fees only
January 24, 2013, 10:44:36 am

how about the foll:

1. Add the school name field as not required to the event profile

2. Use some javascript to:

a. Hide the above field and label by default
b. If user select a specific fee type, show the field and ensure that there is a value there on form submission

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

steveplatz

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 7.17
  • MySQL version: 5.1.65
  • PHP version: 5.3.17
Re: Custom fields visible for certain events fees only
January 24, 2013, 11:48:51 am
Won't be hard to do, I'll get right to it if there isn't a pre-defined, civicrm way to do it. Thanks.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Custom fields visible for certain events fees only

This forum was archived on 2017-11-26.