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) »
  • Dependent custom select fields?
Pages: [1]

Author Topic: Dependent custom select fields?  (Read 301 times)

CiviFan2

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.5.4
  • CMS version: Wordpress
  • MySQL version: unknown
  • PHP version: unknown
Dependent custom select fields?
December 18, 2014, 02:09:34 pm
Have been looking around, but can't find how I can make fields dependent on each other of otherwise create the following.

For events I want participants to register certain attendance preferences in order (1st pref, 2nd pref, 3rd pref, etc.), but of course cannot have the same preference three times (as this will make proper scheduling impossible). So would want to run a simple check before registering whether they filled in the same preference more than once.

Any thoughts? would assume this to be a simple, field can not have same value as other field....

Thanks!

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Dependent custom select fields?
December 19, 2014, 02:11:49 am
No standard option as far as I know, you will to use a validateForm hook?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

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: Dependent custom select fields?
December 19, 2014, 09:05:21 am

i suspect you can accomplish this by adding a small bit of jQuery code to check for equal field values before form submission (or on field entry)

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 CiviEvent (Moderator: Yashodha Chaku) »
  • Dependent custom select fields?

This forum was archived on 2017-11-26.