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) »
  • Compiling comments/questions through forms
Pages: [1]

Author Topic: Compiling comments/questions through forms  (Read 950 times)

anothername

  • I post occasionally
  • **
  • Posts: 64
  • Karma: 3
  • CiviCRM version: CiviCRM 4.2.6
  • CMS version: Drupal 7.19
  • MySQL version: 5.1.66-0+squeeze1-log
  • PHP version: 5.3.3-7+squeeze14
Compiling comments/questions through forms
March 09, 2010, 07:27:37 am
I am trying to figure out the best way to record comments/questions from user and anonymous users. Right now I have a 'Questions or Comments' field under 'constituent info.' The problem with this is that it does not compile the comments. So when a user makes multiple comments in different forms it overwrites the original comment in their profile. Obviously, I could have it create a new profile but then I would have the same problem in merging.

I think the best way to do this would record 'Questions/Comments' in 'Activities' or 'Notes' so that their comments are compiled and order chronologically. However, I don't know if this is possible through civi forms.

Any ideas?

Thanks!

anothername

  • I post occasionally
  • **
  • Posts: 64
  • Karma: 3
  • CiviCRM version: CiviCRM 4.2.6
  • CMS version: Drupal 7.19
  • MySQL version: 5.1.66-0+squeeze1-log
  • PHP version: 5.3.3-7+squeeze14
Re: Compiling comments/questions through forms
March 16, 2010, 09:32:14 am
No ideas?
« Last Edit: March 18, 2010, 01:26:48 pm by ians »

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: Compiling comments/questions through forms
March 16, 2010, 09:36:09 am

neither actvities nor notes nor multi-record custom fields are exposed to the profile. The easiest way might be to use the form hooks and add the note via the postProcess hook

http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+hook+specification

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

anothername

  • I post occasionally
  • **
  • Posts: 64
  • Karma: 3
  • CiviCRM version: CiviCRM 4.2.6
  • CMS version: Drupal 7.19
  • MySQL version: 5.1.66-0+squeeze1-log
  • PHP version: 5.3.3-7+squeeze14
Re: Compiling comments/questions through forms
March 17, 2010, 08:45:43 am
Thanks for the advice!

Has anybody done this before to access fields through profiles? What was your successes and difficulties in doing this?

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: Compiling comments/questions through forms
March 17, 2010, 09:49:58 am

yes, i've used this a fair amount in the school module. if you are familiar with php/mysql it should not be too hard

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 »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Compiling comments/questions through forms

This forum was archived on 2017-11-26.