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 (Moderator: Dave Greenberg) »
  • Using hooks in Joomla to work around no multi-record fields in profile
Pages: [1]

Author Topic: Using hooks in Joomla to work around no multi-record fields in profile  (Read 588 times)

raustin1

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 0
    • University of Notre Dame
  • CiviCRM version: 4.6.11
  • CMS version: Joomla 3.4.8
  • MySQL version: 5.5.45-cll-lve
  • PHP version: 5.6.16
Using hooks in Joomla to work around no multi-record fields in profile
September 18, 2012, 07:48:31 pm
So I'm totally new to the Civi world, but looking for a quick solution. We need multi-record fields to show up in profiles for registration and self-updates. As this is not in the plans for Civi in the near future, do you think it would be possible to create a regular custom field, put it in the profile, and then run a hook to populate the multi-record fields on save?

The custom fields just need to be hidden from the other views while the tabs would be the main screen for data manipulation. The only downside I see is that we have extra tables with data, but if I understand hooks correctly, this should be possible.

Am I on to something or way off?

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: Using hooks in Joomla to work around no multi-record fields in profile
September 18, 2012, 10:46:28 pm

Yes, you can do the below. I do the below fairly extensively in the school module :)

however u do not need to use a regular custom field. Just inject your multi-record fields into the form in the buildForm hook

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 (Moderator: Dave Greenberg) »
  • Using hooks in Joomla to work around no multi-record fields in profile

This forum was archived on 2017-11-26.