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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.4 and 4.0 Releases Testing »
  • County Ajax based select list
Pages: [1]

Author Topic: County Ajax based select list  (Read 4863 times)

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
County Ajax based select list
March 21, 2011, 12:07:09 pm
This is working great when editing a contact. But not in the profile forms.
The profile that comes with the default civicrm install named "Name and Address" the county field does not auto-populate after you choose a State. (3.4)
I did try it on the demo site as well.
Thanks

Rajan Mayekar

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 20
    • Rajan's Blogs
Re: County Ajax based select list
March 21, 2011, 09:53:16 pm
Just I tried on 3.4 sandbox ( http://sandbox.civicrm.org/civicrm/profile/create?gid=1&reset=1 ), it is working fine.

I am not sure about
Quote
the county field does not auto-populate after you choose a State
Actually States are getting auto-populated after choosing Country.

Rajan

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: County Ajax based select list
March 22, 2011, 06:06:53 pm
Sorry Rajan maybe a video will help explain it better. Should be uploaded in about 5 minutes.
http://dl.dropbox.com/u/1492992/civi_county.mov

Rahul Bile

  • I post occasionally
  • **
  • Posts: 112
  • Karma: 16
  • impossible says, I M Possible
    • I AM POSSIBLE
Re: County Ajax based select list
March 23, 2011, 10:19:32 pm
Rajan,

I can confirm this on demo. You can check now @
http://sandbox.civicrm.org/civicrm/admin/uf/group/field?reset=1&action=browse&gid=1 and
http://sandbox.civicrm.org/civicrm/profile/create?gid=1&reset=1

Issue is replicating. The only thing is that right now no county are populating on contact edit also. But it is changing from -Select state- to no Counties on select /unselect of state. 
While in profile the county filed do not responds to the change in state filed.

Rahul
Consider donating to CiviCRM if you use it. http://civicrm.org/donate

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: County Ajax based select list
March 24, 2011, 05:42:18 am
Thanks for the follow up and checking the sandbox.
And yes as you noted the Contact Edit / Add it does work
http://sandbox.civicrm.org/civicrm/contact/add?reset=1&action=update&cid=102&context=search

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: County Ajax based select list
March 24, 2011, 05:42:35 am
should we move this to the issue tracker?

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: County Ajax based select list
March 24, 2011, 06:44:41 am

Yes, you should file an issue. Might also want to investigate and file a patch to address the issue.

County support was community contributed. Can you follow up with the original contributor: andrewhunt and see if he can provide a patch for this

thanx

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

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: County Ajax based select list
March 24, 2011, 07:29:07 am
okay I sent a message to him.
Thanks for the follow up.

andrewhunt

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 13
    • AGH Strategies
  • CiviCRM version: all of 'em
  • CMS version: Drupal, Joomla, and WordPress
Re: County Ajax based select list
March 24, 2011, 11:19:07 am
I was racking my brain about this because I had it working myself, but then on another CiviCRM instance using the same codebase, it wasn't working!

It turns out that in the example above (and in my own example where it wasn't working), all the address fields, country, and state were for the Home location, but the county was for the Primary location.  The system only matches the county with the state of the corresponding location type, as it supports multiple addresses in a single profile (with different states and counties).

I set the county field in the sandbox to be for Home, and it's working--though it only has the original handful of California counties actually loaded in the database there.
« Last Edit: March 24, 2011, 11:21:18 am by andrewhunt »
You can find me at AGH Strategies.
Need help now?  Civi911 is your go-to for CiviCRM support.

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: County Ajax based select list
March 25, 2011, 05:35:30 am
Nice.
Works here now.
Thanks for spending time on that!

kmas

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.4.2
  • CMS version: drupal 6.22
  • MySQL version: 5.1.41
  • PHP version: 5.3.2
Re: County Ajax based select list
June 11, 2011, 02:55:17 am
I have a more basic question:

How did you get the county field to show in the profile? I can't find it in the list of available fields while creating the profile

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.4 and 4.0 Releases Testing »
  • County Ajax based select list

This forum was archived on 2017-11-26.