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 add fields to Profile form? (using BuildForm hook)
Pages: [1]

Author Topic: How to add fields to Profile form? (using BuildForm hook)  (Read 1134 times)

syntetik

  • Guest
How to add fields to Profile form? (using BuildForm hook)
October 08, 2009, 01:25:19 pm
I tried to add fields to form, using $form->add in a BuildForm hook, when $formName='CRM_Profile_Form_Edit', but that method not working. It seems that data structure isn't the same as for CRM_Contact_Form_Edit. How to add fields to profile form?

Requested result: register user in drupal & civicrm - it is done with fields, managed with existing administration. But I need to add some unlisted fields and use them in postProcess hook. One of field is membership_type to add Membership to newly created user.

(I like to write in English, but I don't know is it understandable. Opera's Spellchecker underlined only words - drupal, civicrm, postProcess...) :)
« Last Edit: October 08, 2009, 02:36:08 pm by syntetik »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • How to add fields to Profile form? (using BuildForm hook)

This forum was archived on 2017-11-26.