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) »
  • Contributing to Custom User Profiles - necessary?
Pages: [1]

Author Topic: Contributing to Custom User Profiles - necessary?  (Read 879 times)

geekdenz

  • I’m new here
  • *
  • Posts: 19
  • Karma: 1
    • Geek.De.NZ
  • CiviCRM version: 4.2 (development)
  • CMS version: Drupal 7.12
  • MySQL version: 5
  • PHP version: 5
Contributing to Custom User Profiles - necessary?
March 07, 2012, 01:28:54 am
Hi,

My name is Tim and I'm a Software Developer/(Front-End-)Engineer. I have about 10 years experience in PHP/HTML/JavaScript/CSS and programming languages in general. I'm about to embark on a pretty big project and CiviCRM is the Open Source solution of choice. My client is the New Zealand Arts foundation. We have a requirements document with some pretty generic requirements. We were hoping to cover most of the requirements with what CiviCRM offers out of the box.

Now, I posted a question @ http://forum.civicrm.org/index.php/topic,18022.0.html but since I'm new to CiviCRM I didn't understand all about profiles, even though I had read it about 3 times. Well, I could create "custom" fields using the UI:

I went to Administer->Customize->CiviCRM Profile and created new fields, no problem, including them on the registration form, no problem. However, when I went to Custom Data in the same sub menu and created Custom Fields, went ahead and created a custom autocomplete field, I couldn't find a way to include it in the CiviCRM Profile no matter what I did. Feeling very stupid here...

This might be a very basic question, but isn't there a way to put a custom data field into the registration form? It seems like something fairly basic, considering that CiviCRM is such a complex (and awesome!) piece of software. So, this is not to complain that something is not possible, just checking if this feature exists and if not, I'm keen to spend some time to get to grips with the CiviCRM architecture (know Drupal already fairly well) and implement this feature.

Talking of possible new features: Is there a way to add multiple instances of the same profile into say the registration form or another data entry form? One of the requirements is to have one or MORE locations for an artist's event or happening of project.

Hope I could give an idea of the sort of thing we want to achieve. Just wanted to put this out there in the spirit of Open Source. Of course my work would be contributed back to Civi in terms of Drupal/Civi modules.
Twitter: @geekdenz

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: Contributing to Custom User Profiles - necessary?
March 07, 2012, 12:08:41 pm

Not sure i understood the below completely, so a few questions and suggestions:

1. Not sure whether u mean user registration or event registration

2. For custom data, ensure the custom group is extending the right object. So for user registration, u'll extend either Contact or Individual, for event registration u'll extend  Contact or Individual or Participant

3. Now u can add those custom fields to a profile. Make sure the fields all belong to the combination of Contact / Individual / Participant

4. Expose that profile to My Account or include it in your event reg form

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

geekdenz

  • I’m new here
  • *
  • Posts: 19
  • Karma: 1
    • Geek.De.NZ
  • CiviCRM version: 4.2 (development)
  • CMS version: Drupal 7.12
  • MySQL version: 5
  • PHP version: 5
Re: Contributing to Custom User Profiles - necessary?
March 09, 2012, 05:38:26 pm
Hi, thanks again for your quick answers.  :)

1. I meant User Registration.
2. I extended Artist, based on Individual and made the custom data field/group extend this object. Also tried simply extending individual and contact to no avail.
3. No I cannot add this custom field to any profile as I cannot see the option any where. When I add a field to a profile it only gives me the option of adding a new field and not an existing custom data field.

If I add a new field, no problem it appears in the user registration form, but I would like to include custom fields in the user registration. If this is not possible with even the current development version, no problem, I might need to put some work in to extend civi, but it seems like an obvious thing. I would like to understand civi a bit better before i double up work.

Created a custom autocomplete field, but cannot add it to the user registration.

I'm running CiviCRM 4.1.1 on Drupal 7.12.
Twitter: @geekdenz

geekdenz

  • I’m new here
  • *
  • Posts: 19
  • Karma: 1
    • Geek.De.NZ
  • CiviCRM version: 4.2 (development)
  • CMS version: Drupal 7.12
  • MySQL version: 5
  • PHP version: 5
Re: Contributing to Custom User Profiles - necessary?
March 11, 2012, 01:15:48 am
Hi, finally figured it out!

Sorry for my slowness on this matter. I had chosen tab instead of inline because I was setting it to multiple records and that does not work with a profile in the user registration. I'm much clearer on that now after reading a bit more in the free online book @ http://en.flossmanuals.net/civicrm/organising-your-data/extending-core-data/

Thanks for your patience! Civi is great!
Twitter: @geekdenz

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Contributing to Custom User Profiles - necessary?

This forum was archived on 2017-11-26.