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 »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Interacting with the AJAX field in "New Event Registration"
Pages: [1]

Author Topic: Interacting with the AJAX field in "New Event Registration"  (Read 674 times)

DerekL

  • I post frequently
  • ***
  • Posts: 132
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Interacting with the AJAX field in "New Event Registration"
October 13, 2011, 05:02:23 pm
I'm working on a module that adds per membership_type pricing to events, in order to pull this off though, I need to be able to populate the fields I've added to "civicrm/participant/add" when a user selects a contact.

Ideally, as soon as a contact is selected, it would trigger my own fields' ajax load and logic.

Can anyone provide me with any clues as to where/how I might be able to hook into this field behavior?

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Interacting with the AJAX field in "New Event Registration"
October 13, 2011, 05:35:45 pm
You might be able to re-use some of the code in this module

http://drupal.org/project/civievent_discount
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

DerekL

  • I post frequently
  • ***
  • Posts: 132
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Re: Interacting with the AJAX field in "New Event Registration"
October 16, 2011, 04:34:48 am
Thanks Eileen, I've learned quite a bit from that module's code actually.

My current hurdle is trying to get certain contact+membership data from civicrm via ajax call: http://forum.civicrm.org/index.php/topic,21933.0.html

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Interacting with the AJAX field in "New Event Registration"

This forum was archived on 2017-11-26.