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) »
  • cant edit w/ profile: It cannot be used to edit contacts of other types.
Pages: [1]

Author Topic: cant edit w/ profile: It cannot be used to edit contacts of other types.  (Read 1140 times)

Aaron

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.1.2
  • CMS version: Drupal
  • MySQL version: 5.0
  • PHP version: 4.4.9
cant edit w/ profile: It cannot be used to edit contacts of other types.
July 08, 2012, 07:55:49 pm
Hello,

I'm a noob to both Drupal and CiviCRM.  I've googled and searched through this forum, and am struggling to find an answer to this problem.  There are 5 similar posts, but I don't see a clear solution on those posts.

I've created a sub-type of Individual Contact named Sponsorable_Child.  I've created about 15 custom fields for that sub type, and have created a profile intended for data entry thereof. 

Creation and viewing with the profile works just fine.  However, when I try to use the profile for editing, I get this error:

This profile is configured for contact type 'Sponsorable_Child'. It cannot be used to edit contacts of other types.

I can use the CiviCRM screens to locate the contact, then edit the sub-type data without the profile, but I would prefer to use the profile.

Any ideas what I'm doing wrong?

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: cant edit w/ profile: It cannot be used to edit contacts of other types.
July 08, 2012, 11:31:07 pm
Quote
I've created a sub-type of Individual Contact named Sponsorable_Child.  I've created about 15 custom fields for that sub type, and have created a profile intended for data entry thereof.

Means that the profile is specific to this subtype, and could only be used to add / update a contact of this subtype.

Quote
However, when I try to use the profile for editing, I get this error:

This profile is configured for contact type 'Sponsorable_Child'. It cannot be used to edit contacts of other types.

If you wan't to be able to change subtypes from profile, make sure profile doesn't have 'Sponsorable_Child' specific fields (in your case its custom fields). For example a profile with fields of type contacts / individual (parent type) would allow you to change subtypes.

The analogy is same as - a profile once configured for Individual, can't be used to add / update fields for a contact of type organization.
However if the profile is configured for type 'Contact' could be used to add / update fields for all types of contacts.

This feature of - Keeping profile specific to a subtype and allowing changing subtypes is not currently supported or doesn't exit. You will not to customize / extend the code to achieve that (may not be trivial).
« Last Edit: July 08, 2012, 11:54:33 pm by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Aaron

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.1.2
  • CMS version: Drupal
  • MySQL version: 5.0
  • PHP version: 4.4.9
Re: cant edit w/ profile: It cannot be used to edit contacts of other types.
July 09, 2012, 07:21:26 pm
Thank you very much for the reply.  The contact that I'm trying to edit, is of subtype Sponsorable_Child.  That profile contains mostly fields of type Sponsorable_Child, and about 5 fields that are 'Individual'.

So I'm correct in concluding that I cannot build a profile that will allow me to edit custom fields of the Sponsorable_Child subtype?

Thanks Again,

Aaron

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: cant edit w/ profile: It cannot be used to edit contacts of other types.
July 10, 2012, 12:22:57 am
Quote
The contact that I'm trying to edit, is of subtype Sponsorable_Child.  That profile contains mostly fields of type Sponsorable_Child, and about 5 fields that are 'Individual'.

So I'm correct in concluding that I cannot build a profile that will allow me to edit custom fields of the Sponsorable_Child subtype?

If the contact you are trying to edit via profile is of "Sponsorable_Child" subtype only, profile should allow you to update custom fields or any other fields (but not subtype itself).

If the above is not happening, could you reproduce the problem on demo.civicrm.org ?
 
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • cant edit w/ profile: It cannot be used to edit contacts of other types.

This forum was archived on 2017-11-26.