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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Sort group listing by date added to group / Set up membership "Waiting List"
Pages: [1]

Author Topic: Sort group listing by date added to group / Set up membership "Waiting List"  (Read 1650 times)

narragansett

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 2
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6.20
  • MySQL version: 5.1.41
  • PHP version: 5.3.2-1
Sort group listing by date added to group / Set up membership "Waiting List"
April 20, 2011, 12:07:07 pm
Our organization has a waiting list from which it invites new members to join annually.  We're in the process of transitioning all of our old spreadsheet-based data into Civi (w/Drupal), and the waiting list is one of the last items to be integrated.

The current system is a simple web form whose contents are exported to a spreadsheet when we need to invite more members.  We sort the data on the date registered, pick the top X number of invitees (however many we need to bring our membership back up to the current member limit) & send them invitations.  This web form is not connected in any way to Civi...

The best idea I've been able to come up with so far is for users to fill out a Civi profile-generated web form (replacing our old web form) and to have anyone who submits the form be automatically added to a "Waiting List" group.  I know the "Date Added" info is attached to the group entry, but I cannot figure out how to sort the results based on that date.  Also, while sorting based on "Date Added" would work for any new entries, it would be useless for the ~500 people currently on the waiting list - unless I can import the date they registered directly into the "Date Added" field.

I've also looked into having those who'd like to register for the waiting list set up a "Pending" membership, but I think I'd rather stick to using a group to manage the list - unless there is a compelling reason not to.

Basically, my 'best idea' is clearly lacking.  I need some help with how to set up our waiting list using Civi.  I've spent a number of hours working on this and have hit a brick wall given my novice level of knowledge.  Any & all suggestions would be greatly appreciated.  --Thanks.
« Last Edit: April 20, 2011, 06:36:13 pm by narragansett »

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: Sort group listing by date added to group / Set up membership "Waiting List"
April 20, 2011, 04:00:20 pm

assuming the interaction with members of the waiting list is minimal, then one option might be to manage this using the drupal webform module and keep the list there. Might be a lot easier. There is also civicrm integration for that module if you want the info stored as civicrm contacts

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

narragansett

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 2
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6.20
  • MySQL version: 5.1.41
  • PHP version: 5.3.2-1
Re: Sort group listing by date added to group / Set up membership "Waiting List"
April 20, 2011, 06:32:10 pm
Interesting...  I installed "Webform CiviCRM" and see how it works.  Very slick, and I think likely to be very useful.  Also, the 'transitional' waiting list format ('old web site' -> drupal site w/out Civi -> drupal site w/Civi) uses the webform module, so I've been able to capture ~125 of the ~500 people currently on the waiting list using webform already.

However, I'm still still not seeing how I'm going to be able to sort based on waiting list registration date, choose the top X people, then use CiviMail to send them invites.  Is it possible to create a custom Civi field that is automatically populated with "today's date" (to be either a hidden or view only field in the webform)?  I could then upload the registration dates for all current registrants to that field, and auto-populate the registration date for all future registrants.  It would also be easy to search &/or sort on a custom field.

If this is not possible, are there other suggestions for handling my "registration date" issue?

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: Sort group listing by date added to group / Set up membership "Waiting List"
April 20, 2011, 08:08:36 pm

hmm

webform should be able to create a hidden field and set it to today's date when form is submitted (if not via UI, probably via hooks)

if u r just doing it once a year, i'd do an export from webform -> excel, and import into civicrm the top X people, delete from webform etc

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

narragansett

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 2
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6.20
  • MySQL version: 5.1.41
  • PHP version: 5.3.2-1
Re: Sort group listing by date added to group / Set up membership "Waiting List"
April 20, 2011, 08:45:22 pm
Our current process has been to only interact with those on the waiting list once per year because all contact was done via USPS.  However, we'd prefer to have the option of sending emails to the group on a regular basis, so having all the info in Civi would be preferred if I can make it work.

I've been continuing to work on this.  As a test, I created a custom date field in Civi, then exposed that field in webform (hidden) and set the default to "today" - no problems to that point.  However, when I do a test submission, the date stored is "1969-12-31 18:00:00".  I know what that means, but I don't know why it is being stored that way.  The webform submission results show today's date, so it has to be getting translated somewhere between drupal & civi, right?

Any thoughts?
« Last Edit: April 20, 2011, 08:47:02 pm by narragansett »

narragansett

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 2
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6.20
  • MySQL version: 5.1.41
  • PHP version: 5.3.2-1
Re: Sort group listing by date added to group / Set up membership "Waiting List"
April 21, 2011, 04:39:41 am
I've continued to work on this - after much trial & error, this is what I've found:

  • It seems that using a field type of "hidden", and a default value of %date (as indicated in the list of acceptable tokens) will result in a value of '1969-12-31 18:00:00' being entered into the Civi database - despite the "results" view in webform showing the correct date & time.
  • When using the field type of "date", and a default value of 'today' (as instructed in the field info), the current date is displayed both in the "results" view in webform, as well as in the Civi database (2011-04-21 00:00:00).

I really don't care whether or not this date is hidden, so long as it cannot be altered by the person registering.  Is there a way to use the "date" field type (as this seems to populate the db properly) while also hiding or making 'read only' the date itself?

The alternate, but very dirty solution is to include field instructions telling registrants that they'll be removed from the waiting list if they change the date shown, which could be enforced by exporting to Excel the results & manually comparing all the "submission times" with the custom "registration date" fields, though that is clunky all around.  I'll go with this if I absolutely have to, but I'd really rather not if a better solution exists.

Long term, I believe the "right" solution will be to populate the custom "registration date" field with the built in webform "submitted" field.  Any hints as to how this might be accomplished would also be greatly appreciated.

Thanks.

narragansett

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 2
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6.20
  • MySQL version: 5.1.41
  • PHP version: 5.3.2-1
Re: Sort group listing by date added to group / Set up membership "Waiting List"
April 22, 2011, 11:17:35 am
After continued testing, I noticed that the "Webform CiviCRM" module allows an activity to be created upon submission.  I created a custom Activity ("Register for Waiting List") and was able to successfully search for the newly created activity based on the date.

Is there any downside to using an Activity record to track when a person registered for the waiting list?  I can import an activity for all those already on the waiting list, so that is not a problem.  Basically, is there any way for the date of an activity to be changed, other than by someone with admin privileges?  If no, how do I ensure no one (other than myself) has those privileges?

Thanks again for any help or input on this - I truly appreciate it.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Sort group listing by date added to group / Set up membership "Waiting List"

This forum was archived on 2017-11-26.