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) »
  • Add member to groups by submit the profile form at frontend
Pages: [1]

Author Topic: Add member to groups by submit the profile form at frontend  (Read 3858 times)

DHLao

  • Guest
Add member to groups by submit the profile form at frontend
March 28, 2009, 09:48:23 am
The document show how to add member to group in "Manager Groups". But have no instruction about how to add member to groups by submit the profile form.

Lets say, I made 3 groups name "Education", "Environment" and "Social Justice"

Then I make a profile form with a custom field type checkbox. The options are "Education", "Environment" and "Social Justice".

What I want to do is when the member check the options and submit the form. Then that member will add to the corresponding groups.

Can Civicrm capable to make it or need some coding to do?

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: Add member to groups by submit the profile form at frontend
March 28, 2009, 02:54:16 pm

can u clarify which document you are referring to and give us a url for it

thanx

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

DHLao

  • Guest
Re: Add member to groups by submit the profile form at frontend
March 28, 2009, 05:09:01 pm
The document I refer is http://wiki.civicrm.org/confluence/display/CRMDOC/Regular+Groups

Which is inside CiviCRM 2.2 Documentation.

I just want to know is it possible to let member add themselves to the groups by submit the profile form at the frontend.

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: Add member to groups by submit the profile form at frontend
March 28, 2009, 06:50:23 pm
If I understand you correctly then yes it is possible.

Add the groups field to your profile with the visibility of public user pages.  Once you do, when people visit your profile at a URL like: <site root>/civicrm/profile/create?reset=1&gid=X, they will see all of your CiviCRM groups that have the visibility of public user pages. They can then add themselves to those groups if they so choose.  Here's an example: http://demo.dharmatech.org/programs The checkboxes are CiviCRM groups.

To configure a group's visibility settings, go under under manage groups.

hope this helps
tony
http://dharmatech.org
oss@dharmatech.org
801.541.8671

DHLao

  • Guest
Re: Add member to groups by submit the profile form at frontend
March 30, 2009, 08:20:32 am
I made a Custom Data Group which select "Used For Groups" at the dropdown menu.

I think it is the function what I need and preapre to add this to the profile.

But when I try to add profile field, there's no "Groups" in Field name dropdown menu selection.

There're only "Contacts", "Individual", "Household" and "Organization".

At the demo site http://joomla.demo.civicrm.org/administrator/ there're 3 more selection in Field name dropdown menu.

Can "Groups" also be 1 of the selection in Profile Field name too ?

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: Add member to groups by submit the profile form at frontend
March 30, 2009, 08:30:43 am
to add the groups field to your profile, you need to select "contacts" under field name. Then groups will appear in the next drop down.

You don't need to create a custom data group to add groups to a profile. It's confusing but they're separate.

hope this helps
tony
http://dharmatech.org
oss@dharmatech.org
801.541.8671

DHLao

  • Guest
Re: Add member to groups by submit the profile form at frontend
March 30, 2009, 08:50:57 am
Thanks a lot.
but why there're 7 selection for Profile field name in the demo site ?
There're only 4 in my site. How to add ? Need coding ?

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: Add member to groups by submit the profile form at frontend
March 30, 2009, 11:21:06 am
It's probably because you haven't enabled those components yet.

You'll have to go under administer civicrm>>global settings>>enable components. Enable CiviContribute, CiviMember, and CiviEvent. Now those new options will appear when adding a field to a profile.

tony
http://dharmatech.org
oss@dharmatech.org
801.541.8671

DHLao

  • Guest
Re: Add member to groups by submit the profile form at frontend
March 30, 2009, 08:14:52 pm
Yea- you right. I disable some of the component  ;D

I submit the form at the frontend and received the Subscription Confirmation Request email.
I select 2 groups so I received 2 email.
Can I merge them to 1 email ? Then the user just need to click once to confirm all the selected group.
« Last Edit: March 30, 2009, 10:30:48 pm by DHLao »

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: Add member to groups by submit the profile form at frontend
March 31, 2009, 07:11:26 am
That's not currently possible but it has come up before.

Tony
http://dharmatech.org
oss@dharmatech.org
801.541.8671

DHLao

  • Guest
Re: Add member to groups by submit the profile form at frontend
March 31, 2009, 07:57:03 am
Can I just disable the Subscription Confirmation Request email ?

If my member select 10 groups, 10 confirmation email send. That's ridiculous.

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: Add member to groups by submit the profile form at frontend
March 31, 2009, 08:02:17 am
Quote from: DHLao on March 31, 2009, 07:57:03 am
If my member select 10 groups, 10 confirmation email send. That's ridiculous.

agreed. so please do submit a patch that fixes this and makes it a wee bit less ridiculous

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) »
  • Add member to groups by submit the profile form at frontend

This forum was archived on 2017-11-26.