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) »
  • Limiting the groups to which a profile allows subscription
Pages: [1]

Author Topic: Limiting the groups to which a profile allows subscription  (Read 610 times)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Limiting the groups to which a profile allows subscription
June 16, 2010, 10:53:33 pm
I had a quick look but couldn't see how to set up a profile so that only some of the public groups are listed.

For instance, it would be nice to set up one form for subscribing to Sydney groups, another for Brisbane, etc.
Alternately, it would be good to only have one group listed.

Thoughts?
Ken

ctarascio

  • I post frequently
  • ***
  • Posts: 334
  • Karma: 30
    • American Friends Service Committee
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 6.26
  • MySQL version: 5.5.20
  • PHP version: 5.3.13
Re: Limiting the groups to which a profile allows subscription
June 17, 2010, 05:58:35 am
Hi Ken,
The url would look something like this: https://sitename/civicrm/mailing/subscribe?reset=1&gid=X where "X" is the group ID for the appropriate group. Only one entry box for email will be displayed. There may be a way to display more fields e.g. Name, but I don't know how to do that or if it is possible without "customization".

Hope this at least point you in the right direction.

Cynthia

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Limiting the groups to which a profile allows subscription
June 17, 2010, 08:03:54 pm
Thanks for your suggestion, Cynthia!

My current thinking for setting up a profile that adds a person to a specific group G, is to...

  • create a profile that includes the "Groups" field
  • generate the HTML snippet from the Profile Listing screen
  • remove the other groups from the snippet
  • set the checkbox for the group G <input ... type="checkbox" checked="checked" ...>
  • hide the input-field for group G, as there's no longer a need for the user to make a selection
  • remove the Cancel button
  • display the modified HTML snippet on a page

The only issue is that errors (such as mandatory input not supplied) cause the original profile (with all the group options) to be displayed. This is not wrong, but might confuse a user ("Where did all these group options come from?"). Perhaps the answer is to call the profile something generic like "Subscribe to groups" and have a generic description about subscribing to groups, so at least the gear-shift is explained.

Ken

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Limiting the groups to which a profile allows subscription

This forum was archived on 2017-11-26.