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) »
  • Don't want to use built-in "Contact details" pane. Getting error while saving.
Pages: [1]

Author Topic: Don't want to use built-in "Contact details" pane. Getting error while saving.  (Read 759 times)

bilvavan

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6.20
  • MySQL version: 5.5.8
  • PHP version: 5.3.5
Don't want to use built-in "Contact details" pane. Getting error while saving.
March 31, 2011, 03:55:18 am
I don't want to use the built-in "Contact details" pane for saving my Individual Contact records. I have customized my custom field sets as per my needs. However, on saving a new record, I get this error -

"Please correct the following errors in the form fields below:
First Name and Last Name OR an email OR an OpenID in the Primary Location should be set."
 
I have my mandatory fields in my custom field sets, and I don't want to be bothered by these mandatory fields as mentioned above. There is also no option to disable this "Contact details" pane like the other panes in Admin>Configure>Global Settings>Site Preferences.

Can anyone tell me how do I get ahead of this?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Don't want to use built-in "Contact details" pane. Getting error while saving.
March 31, 2011, 04:18:10 am
Hi,

You are trying to save a contact without first name or last name or email ?

It sounds that either you are trying to "re-do" the basic core fields as custom fields or that you are twisting civicrm a bit too far to put into it something that isn't a contact. Could you detail a bit more why using the default fields don't work ?

They are a lot of part where it assumes and relies on the default fields being there, if your data don't fit into it, you might want to consider using something else than civicrm and go custom ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

bilvavan

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6.20
  • MySQL version: 5.5.8
  • PHP version: 5.3.5
Re: Don't want to use built-in "Contact details" pane. Getting error while saving.
March 31, 2011, 04:46:14 am
Hi Xavier,

Am "re-doing" the basic core fields as custom fields only bcoz I found no way to edit the fields in the  built-in Contact Details pane. As for the name, email, phone & image fields, they are needed for me. But I don't require other fields like Current employer/ Open id/ website.

Can u tell how do I edit/remove the fields in this built-in form as per my req.?

bilvavan.
« Last Edit: March 31, 2011, 05:05:19 am by bilvavan »

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Don't want to use built-in "Contact details" pane. Getting error while saving.
March 31, 2011, 05:27:31 am
Quote
Am "re-doing" the basic core fields as custom fields only bcoz I found no way to edit the fields in the  built-in Contact Details pane

Fix that problem now (not sure what was not working, could you clarify?), delete your "re-doing" custom fields. The current employer/open id/website are not mandatory anyway (and you can hide some, at least the openid).

Almost every single feature (mailing/civievent, activities, display of lists...) of CiviCRM assumes that the first name is in the first name field, same goes for the other standard fields. Really, use them or you are in for a world of pain if you try not to use them.

Don't try, they are referenced and used in 100th of places in the code, you don't want to change almost every single file.

Seriously, if you don't want to use these fields, don't use civicrm, but whatever was the issue about "edit the fields in the  built-in Contact Details pane.", it can be solved while keeping the normal fields.

X+

P.S. if you want a specific form to edit contacts, you might want to use profiles.
P.S.
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Don't want to use built-in "Contact details" pane. Getting error while saving.

This forum was archived on 2017-11-26.