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) »
  • How to integrate the ajax in the custom fields of civicrm
Pages: [1]

Author Topic: How to integrate the ajax in the custom fields of civicrm  (Read 695 times)

rameshks80

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 3.5
  • CMS version: 6
  • MySQL version: 5
  • PHP version: 5
How to integrate the ajax in the custom fields of civicrm
April 13, 2011, 03:21:49 am
I have added the custom field in the contact and listed all the states. On changing the state I need to show a drop down with the contents fetched from DB.

how can i add the ajax call and where can i write the code? Please suggest.


xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: How to integrate the ajax in the custom fields of civicrm
April 13, 2011, 04:21:41 am
On 3.4 and api v3, it should be accessible from optionValue and optionGroup.

Create the custom fields and check from there you can get them.

http://sandbox.civicrm.org/civicrm/ajax/doc

Eileen has written an how to backport the api v3.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: How to integrate the ajax in the custom fields of civicrm
April 13, 2011, 04:44:29 am
http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviCRM+Public+APIs
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • How to integrate the ajax in the custom fields of civicrm

This forum was archived on 2017-11-26.