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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Event registration on behalf of a child (relationship based permission)
Pages: [1]

Author Topic: Event registration on behalf of a child (relationship based permission)  (Read 1309 times)

Simon West

  • I’m new here
  • *
  • Posts: 19
  • Karma: 1
  • CiviCRM version: 44311
  • CMS version: Drupal 7
  • MySQL version: 5.5.9
  • PHP version: 5.3.6
Event registration on behalf of a child (relationship based permission)
January 31, 2013, 06:20:43 pm
Hi there,

Can you give Drupal users with a 'parent of' relationship to another record the ability to not only edit their record (relationship based permission), but also register them for events, etc, using Civi forms which take payment. My understanding is that they would need to register themselves with a '+1', which in this case would be their child.

Reading some old posts it appeared that this was not possible, or at least not without complex workarounds. Has this changed?

Thanks,
Simon




Background (for context):

In my scenario, both parents and children can hold different types of membership. Upon logging in, provided their membership status is "active", they will have access to different areas of a Drupal site. Children are registered for membership by their parent, and after approval the parent may then register them for events and view information otherwise hidden from the public. For this we will provide user accounts for every child member (not checksums) and the account email address will be one of the parent's, each of whom will have records created for them upon submission of the registration webform (mother and father details).

Issues with this approach:

  • When the child reaches the age of 18, they may wish to become an adult member. By this point they will probably have their own email address. Somehow the address on record for that contact needs to be changed. The parent could do this, but it's not a neat solution.
  • The same email address will be on record for at least two contacts in CiviCRM. New dedupe rules will be needed.
  • If the parent of a child member wishes to become an adult member, a second Drupal user account cannot be created under the same email address.

Have I overlooked a feature which would simplify this?

At the moment, I believe we could get away with using a checksum for adult members when they wish to update their information, but knowing how to push it one step further - giving them member only access to content for adult members (not adult content!) - would be marvellous.


« Last Edit: January 31, 2013, 06:23:15 pm by Simon West »

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: Event registration on behalf of a child (relationship based permission)
February 01, 2013, 11:00:40 am

You should try this out, but if a parent has permission on their child, then you should be able to us:

q=civicrm/event/register&reset=1&id=EVENT_ID&cid=CHILD_ID

for a parent that is logged in. Civi should detect that parent has permissions on CHILD_ID and allow the registration to go thru with the child as the main contact

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

Simon West

  • I’m new here
  • *
  • Posts: 19
  • Karma: 1
  • CiviCRM version: 44311
  • CMS version: Drupal 7
  • MySQL version: 5.5.9
  • PHP version: 5.3.6
Re: Event registration on behalf of a child (relationship based permission)
March 08, 2013, 08:12:34 am
Hi Lobo,

We tried the following:

  • Built a Webform that creates the permissioned relationship between the parent and children
  • Used Drupal Views to restrict the list of events the user should be able to view and register for (I opted against the BuildForm hook to reduce complexity for the organisation)
  • Logged in as a parent and tried to register one of their children for event ID 2 using the following URL:
    http://samplesite.org.uk/civicrm/event/register?id=2&reset=1&cid=1336
  • While we're logged in as the parent with the correct permissioned relationship, the registration still only loads the parent's details. The option to "register as another contact" doesn't apply in this situation, as the child does not have an email address, and the parent would need to fill out their child's details again.

Do you have any thoughts on this? Also, if it does work, how would you recommend generating that URL with the correct contact ID?

Unfortunately, in this use case, separate user accounts for each child is logistically problematic (the children rarely have email addresses at that age, and the parent would need to create new ones for each child, remember the login details, and forward mailings sent to the child onto their own addresses).

Thanks!
Simon
« Last Edit: March 08, 2013, 08:21:30 am by Simon West »

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: Event registration on behalf of a child (relationship based permission)
March 08, 2013, 09:06:19 am

For logged in users with permissioning, #3 should work

r u on 4.2.7 (or some version close to that). if u get on irc, we can run a few quick tests and check

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

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: Event registration on behalf of a child (relationship based permission)
March 08, 2013, 09:40:45 am

argh

took a look at the code and realized we dont handle it. not sure why, checking.

but it seems like its a fairly easy minor fix.

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

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Event registration on behalf of a child (relationship based permission)
March 08, 2013, 10:38:15 am
By handle "it" do you mean:
- Registering the child as if you were the child, or
- Registering the child as their parent

Seems like Civi could handle the first but not the 2nd, unless I'm missing something.
Webform_civicrm can handle either scenario, and works quite well for registering multiple children as their parent. But of course it has the fatal limitation that it doesn't handle payments or prices at all.
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Event registration on behalf of a child (relationship based permission)

This forum was archived on 2017-11-26.