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) »
  • Custom Field Logic
Pages: [1]

Author Topic: Custom Field Logic  (Read 509 times)

joycedesign

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Joomla 1.7
  • MySQL version: 5.1.6
  • PHP version: 5.3.8
Custom Field Logic
March 30, 2012, 01:21:08 am
I have created a Profile and added 4 custom fields - Affiliation (Select), When (Select), Club (Select) and Other Club (Text). I have included the profile on a Contribution Page.

I want to implement form logic so that:

'When' only appears when 'Ex Player' has been selected from 'Affiliations'.

'Club' only appears when 'Junior Parent' or 'Junior Player' is selected from 'Affiliations'.

'Other Club' only appears when 'Other Club' is selected from 'Club'.

I tried doing this by using the example custom feilds hook, but had no luck.

Any help would be greatly appreciated.

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 Field Logic
March 30, 2012, 06:49:51 am

I think the easiest solution in this case might be by adding jQuery snippets to the tpl to enforce the rules below

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) »
  • Custom Field Logic

This forum was archived on 2017-11-26.