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 »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Drupal User registration form: Linking individuals to their alumni organization
Pages: [1]

Author Topic: Drupal User registration form: Linking individuals to their alumni organization  (Read 1603 times)

gmasky

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.26
  • MySQL version: 5.5.x
  • PHP version: 5.3.x
Drupal User registration form: Linking individuals to their alumni organization
February 08, 2014, 07:15:42 pm
Hello,

I am testing out civicrm for a central alumni organization that has other alumni organizations as its members (contact type = Organization). There are a fixed number of such member organizations.

Individual alumni (contact type Individuals) are allowed to register on the site. I have created a new relationship for Individuals Alumnus of and Parent Association of

My use case is: at the time of registration an individual enters his personal details and chooses his alumni organization from an auto complete drop down.

Is this possible and how?

Thanks.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Drupal User registration form: Linking individuals to their alumni organization
February 08, 2014, 08:20:30 pm
hi - there will be several solutions - the one I would jump to rather than using a Profile would be to use Webform-civicrm module, set it up so it loads x2 contacts, where the 2nd contact is filtered to just be your autocomplete of alumni orgs, and set it up so the relationships is created upon submission - all simply implemented via the UI. and the documentation on webform_civicrm is very good in this respect.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Drupal User registration form: Linking individuals to their alumni organization
February 08, 2014, 08:28:46 pm
sorry - just saw the topic title and realised that you are wanting to create drupal user at same time.
while this is also possible via the route i suggested but it gets more complicated (see blog if you want to know more about that route - https://civicrm.org/blogs/petednz/creating-drupal-users-made-easy-single-or-multiple-contacts-civi-imports-and-webforms)

i was thinking you may be able to do this via Profiles now anyhow, using a Custom Field of type Contact Reference - and limiting it to a Group of your Alumni Orgs - but afaik that can't create the relationship without use of a post process hook or some other magic.

Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

sushant

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 8
  • CiviCRM version: v3.2.x,v3.3.x v4.0.x, v4.x,trunk
  • CMS version: Drupal 6/7 ,joomla 1.5,1.6
  • MySQL version: 5.1.51
  • PHP version: 5.3.3
Re: Drupal User registration form: Linking individuals to their alumni organization
February 08, 2014, 08:40:15 pm
If I understood this correct, this may help you. You can add Current employer field in Profile .
Adding "current employer" field in profile , will create the relation between the newly created Individual and organization.

S.
CiviCRM Priority Support
http://support.civigardens.com/
http://osseed.com

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Drupal User registration form: Linking individuals to their alumni organization
February 08, 2014, 08:41:55 pm
yes that is a good point, and can be a workaround, but it uses the employee/employer relationship - so if you are happy to repurpose that, then it is the simplest approach
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

sushant

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 8
  • CiviCRM version: v3.2.x,v3.3.x v4.0.x, v4.x,trunk
  • CMS version: Drupal 6/7 ,joomla 1.5,1.6
  • MySQL version: 5.1.51
  • PHP version: 5.3.3
Re: Drupal User registration form: Linking individuals to their alumni organization
February 08, 2014, 08:47:33 pm
If you don't want "employee/employer relationships" than you can handle it with the help of little customization.

S.
CiviCRM Priority Support
http://support.civigardens.com/
http://osseed.com

gmasky

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.26
  • MySQL version: 5.5.x
  • PHP version: 5.3.x
Re: Drupal User registration form: Linking individuals to their alumni organization
February 08, 2014, 10:04:11 pm
I thought about using the Current employer field and Employee/Employer relationship.

However what will it take to have a custom field "Alumnus of" and then use the Relationship (I have created) Alumnus of and Parent Association of

How do I create a custom field that will be used for an Individual and use the Relationship I have created?

Thanks

sushant

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 8
  • CiviCRM version: v3.2.x,v3.3.x v4.0.x, v4.x,trunk
  • CMS version: Drupal 6/7 ,joomla 1.5,1.6
  • MySQL version: 5.1.51
  • PHP version: 5.3.3
Re: Drupal User registration form: Linking individuals to their alumni organization
February 09, 2014, 05:14:17 am
You can add custom field in profile and than use CiviCRM hooks like  post process to write the relationship logic.

http://book.civicrm.org/user/current/organising-your-data/custom-fields/

http://wiki.civicrm.org/confluence/display/CRMDOC/Hook+Reference

S.
CiviCRM Priority Support
http://support.civigardens.com/
http://osseed.com

gmasky

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.26
  • MySQL version: 5.5.x
  • PHP version: 5.3.x
Re: Drupal User registration form: Linking individuals to their alumni organization
February 09, 2014, 05:06:38 pm
Thank You @sushant

I thought linking an Individual and Organization at user registration would be much more straightforward.
« Last Edit: February 09, 2014, 08:24:49 pm by gmasky »

gmasky

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.26
  • MySQL version: 5.5.x
  • PHP version: 5.3.x
Re: Drupal User registration form: Linking individuals to their alumni organization
February 21, 2014, 04:07:55 am
Quote
I was thinking you may be able to do this via Profiles now anyhow, using a Custom Field of type Contact Reference - and limiting it to a Group of your Alumni Orgs - but afaik that can't create the relationship without use of a post process hook or some other magic.

Apologies for re-opening this. I decided to go with the Contact Reference + Groups to expose only the Name of the Organization. This works with logged in users with permission. However it does not work for anonymous users. No magnifying glass icon in the right of the field and no contact drop-down appears. Here is a test site http://stanislaus.in/jaai/user/register

Similar to what has been reported here http://forum.civicrm.org/index.php/topic,20922.0.html

Is this still not doable as reported in the issue or am I missing something.


pkeogan

  • I post frequently
  • ***
  • Posts: 130
  • Karma: 4
    • BackOffice Thinking
Re: Drupal User registration form: Linking individuals to their alumni organization
February 25, 2014, 04:21:15 am
Did you check your permissions?

gmasky

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.26
  • MySQL version: 5.5.x
  • PHP version: 5.3.x
Re: Drupal User registration form: Linking individuals to their alumni organization
February 27, 2014, 05:49:39 pm
Thanks,

It was a permission issue specifically

CiviCRM: access contact reference fields and
CiviCRM: access all custom data

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Drupal User registration form: Linking individuals to their alumni organization
February 27, 2014, 05:56:57 pm
thanks for posting back

maybe the 'custom all data' was tripping up here too http://forum.civicrm.org/index.php/topic,31625
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Drupal User registration form: Linking individuals to their alumni organization

This forum was archived on 2017-11-26.