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) »
  • profile not adding new user to group
Pages: [1]

Author Topic: profile not adding new user to group  (Read 2024 times)

perlwonk

  • I’m new here
  • *
  • Posts: 11
  • Karma: 1
profile not adding new user to group
June 15, 2013, 10:17:20 am
I've created a profile, then in the advanced section, I told it to add new users to the group 'volunteer'. Then I created a stand alone form based on the profile and when I add a volunteer using the form, the group is set to something else. I'm getting the same result if I create an event and attach the same profile to it. The group that the participant gets assigned to isn't consistent and it's never right. Does this just not work? What's a good work around?

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: profile not adding new user to group
June 15, 2013, 11:31:55 pm
Would be helpful if you could replicate on demo site.
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

perlwonk

  • I’m new here
  • *
  • Posts: 11
  • Karma: 1
Re: profile not adding new user to group
June 16, 2013, 07:55:18 am
Ok, on the demo site I created the group "volunteer", created a profile "volunteer" and in the "advanced" section I told it to put new contacts in the group "volunteer". Then I created the event "my big event" and added the volunteer profile to the event. Then I registered "Elvis Presley" as a volunteer to the event. When I register Elvis as a volunteer to the event, I would expect that Elvis is in the group "volunteer", but when I search for everyone in the group volunteer ... no Elvis. He has left the building.

BTW Thanks for the tip on the  demo site. I didn't know it was there.

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: profile not adding new user to group
June 16, 2013, 01:10:02 pm
A few thoughts.

Providing links help speed up things. I guessed you did this on the Drupal demo but wasn't sure. Anyway the site was down so couldn't check your work.

Can you confirm that if you use the Profile as a standalone form, that the contact gets added to the group. If so then the issue is clearly with how that facet of profiles works in events.

But also, confirm what other fields are there in this profile, and is that data being added to the contact when they are not being added to the group (just spotted you didn't mention any fields ;-)
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

perlwonk

  • I’m new here
  • *
  • Posts: 11
  • Karma: 1
Re: profile not adding new user to group
June 17, 2013, 12:37:37 am
Yes, I put this on the Demo site, but the database got reset. How can I show you my work? The stand alone profile has the same behavior. It doesn't put the contact in the group I want. The profile has the fields, First, last name address, city, state, zip, phone number, email address.

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: profile not adding new user to group
June 17, 2013, 01:05:41 am
only suggestion is screenshots
- of profile Adv Settings
- of Group settings
- of Profile field list

not sure. struggling to think how i can help you out

do you have access to DB?

in civicrm_uf_group do you see the Group ID from above in the add_to_group_id column?

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

perlwonk

  • I’m new here
  • *
  • Posts: 11
  • Karma: 1
Re: profile not adding new user to group
June 17, 2013, 10:34:28 am
Here are the screen shots: http://www.opportunitycommunities.org/profile_problem

I'm not sure how to get into the DB. I can figure it out though if you need me to.

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: profile not adding new user to group
June 17, 2013, 01:32:29 pm
don't know about those 'notices' but there is something happening with that profile obviously.

you have a lot of things turned on for that profile, might be worth stripping it down to just
- standalone profile
- turn off the bottom 3 settings in the adv section

can't explain why any of those would interfere but might be worth trying.

also noted that your Volunteer Group was 'created by 'Monster, Frankenstein" even though you then say you created that person via the Profile - seems odd.

if it helps, and you spot me on skype, happy to take a look via screenshare for 5 mins peter.davis59
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

perlwonk

  • I’m new here
  • *
  • Posts: 11
  • Karma: 1
Re: profile not adding new user to group
June 20, 2013, 12:25:35 pm
A couple of things I've noticed that I didn't see before:

1. When I copy and paste the HTML snippet code for the profile into a Drupal page, or article, all the <script> ... </script> tags are stripped out. Only regular HTML is accepted. I guess with Drupal 7 this is normal behavior. I'm surprised it worked at all! So, to create a standalone CiviCRM form using Drupal 7, I need to figure out a way to run <script> tags in a Drupal page.

2. I created a different Drupal site with a different CiviCRM, and tried to create an event and insert my custom profile in it. I discovered that it won't even give me that option. My custom profile doesn't show up on the list of profiles to attach to the event, only pre-defined ones. Is this correct behavior?  Now, thinking about it, I remember changing the name of the "Your Registration Info" profile to "Volunteer". I wonder what that might have done? Could this have something to do with it not working the way I thought it should?

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: profile not adding new user to group
June 20, 2013, 01:03:10 pm
sorry think i am out of ideas at least for now  ::)
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

perlwonk

  • I’m new here
  • *
  • Posts: 11
  • Karma: 1
Re: profile not adding new user to group
June 20, 2013, 10:17:13 pm
Thanks for your help. I will wrestle this one to the ground and when I understand the problem, I'll post what I've learned here.

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: profile not adding new user to group
June 20, 2013, 10:38:02 pm
shame i didn't get to see the set up on demo that you say replicated the issue

I just made a Profile, set to 'add to Group B', added a field,

http://drupal.demo.civicrm.org/civicrm/admin/uf/group?action=update&id=15&reset=1&context=field

added the Profile to an event,

http://drupal.demo.civicrm.org/civicrm/event/manage/registration?action=update&reset=1&id=1

registerd logged out

and the contact created was added to Group B

http://drupal.demo.civicrm.org/civicrm/contact/view?reset=1&cid=226

so it 'works'

hopefully that gives you something to compare to
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) »
  • profile not adding new user to group

This forum was archived on 2017-11-26.