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) »
  • Data Field Relationships
Pages: [1]

Author Topic: Data Field Relationships  (Read 1541 times)

avyaktha

  • Guest
Data Field Relationships
July 14, 2007, 02:54:42 pm
I have two questions

1) Is there a way to show different registration form fields for different kind of users

2) This question is also based on my question above for ex if there are two fields
    Marital Status and Marriage Date. The Date makes sense only based on the value of the status, is there a way to do this in civicrm.

I am using drupal

Thanks
Suresh

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Data Field Relationships
July 14, 2007, 07:22:31 pm
CiviCRM does not currently have built-in support for conditionally exposing custom fields. You might be able to do this by adding javascript to a standalone profile from.

Drupal core doesn't offer different user registration screens - altho I think there are some modules that support this. However, one approach to this will be available in 1.8 - where you can include user registration IN a CiviCRM Profile form. Using this feature you could create different profiles which include user registration for your different "kinds of users".

Check out this 1.8 issue:
http://issues.civicrm.org/jira/browse/CRM-1633

... and the alpha sandbox to try it out.
http://sandbox.civicrm.org/drupal/
Protect your investment in CiviCRM by  becoming a Member!

avyaktha

  • Guest
Re: Data Field Relationships
July 23, 2007, 03:25:44 pm
Hi thanks a lot for the reply,

This is what I am trying to achieve

1) The user clicks register in drupal and he sees a set of basic/initial fields that he needs to provide to register.
2) On login he should now be able to provide business information, the kind of information that he fills in should vary depending on what he filled in during registration.If the person is an auto mechanic then the kind of fields that he sees should be specific to his business and should be different from what a software engineer sees.

This was what I was planning (I am very new to civicrm so correct me if I am wrong)

1) Create a basic registration profile with a custom field for the type of business that an individual has.

2) Based on the the type of business display a page to the user to fill up his business information.( I don't know how to do this using civicrm, I just need a way to classify users and give them different fields to fill up based on that classification)

To be more specific I am looking like something like this

http://drupal.org/project/nf_registration_mod


thanks,
Suresh



« Last Edit: July 23, 2007, 03:30:25 pm by avyaktha »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Data Field Relationships
July 23, 2007, 04:39:52 pm
I think you'll need to do some experimenting with a combination of Drupal add-on module(s) like the nf_registration_mod, and/or Login Destination to achieve the user-flow you're looking for.

You would still create CiviCRM Profiles for each type of business/occupation - and then hopefully use a Drupal add-on to handle redirecting the user to the appropriate CiviCRM profile after they've submitted the initial user registration form.

CiviCRM also has a hook mechanism which might be an alternative method of doing the redirect after registration - based on a CiviCRM group/tag or custom field value selected on the initial registration form.

http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+hook+specification
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Data Field Relationships

This forum was archived on 2017-11-26.