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 Import (Moderator: Yashodha Chaku) »
  • how to create custom data for Matching CiviCRM Field in "Import Contacts" ?
Pages: [1]

Author Topic: how to create custom data for Matching CiviCRM Field in "Import Contacts" ?  (Read 1216 times)

sushant1431

  • Guest
how to create custom data for Matching CiviCRM Field in "Import Contacts" ?
March 31, 2010, 10:36:47 pm
I want to create custom data (like S.no) in Matching CiviCRM Field in "Import Contacts". I'm going to make a custom import to import csv file. there is 3 column field in csv file like s.no, name, lastname, fav.actor name. And i want to import those fields. How could i achieve this.

Any help will  be appreciable ?  :)

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: how to create custom data for Matching CiviCRM Field in "Import Contacts" ?
April 01, 2010, 12:41:56 am
sushant1431 :

This can be achieved by creating the custom fields in Administer → Customize → Custom Data first, and then importing the custom data corresponding to these fields in the csv. You might wanna read a wee bit about custom data and import in CiviCRM from the CiviCRM Book esp, the following chapters :

http://en.flossmanuals.net/CiviCRM/ContactsAddingAndImporting
http://en.flossmanuals.net/CiviCRM/HandlingContacts

You might also want to check the same by trying it out on our demo :
http://demo.civicrm.org/

HTH
-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

sushant1431

  • Guest
Re: how to create custom data for Matching CiviCRM Field in "Import Contacts" ?
April 01, 2010, 05:21:56 am
you were right  ;D I've to create custom data first and then need to import, now it's appearing in dropdown box of "Matching CiviCRM Field". But now it's showing like My_Sno::sno (i.e group name::label name). I want to simply show S.no. How to do that. Plz help  :'(

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: how to create custom data for Matching CiviCRM Field in "Import Contacts" ?
April 01, 2010, 06:48:18 am
sushant1431 :

You might want to look at CRM/Import/Form/MapField.php line no 966 (approx) and make the following change :

Code: [Select]
Index: CRM/Import/Form/MapField.php
===================================================================
--- CRM/Import/Form/MapField.php (revision 26873)
+++ CRM/Import/Form/MapField.php (working copy)
@@ -966,7 +966,7 @@
 
-                    $formattedFieldNames[$key] = $fields[$key] . ' :: ' . $groupTitle;
+                    $formattedFieldNames[$key] = $fields[$key];
                 }

I recommend using custom templates to achieve the same.
For more details, refer : http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in,+Profile,+Contribution+and+Event+Registration+Screens


HTH
-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

sushant1431

  • Guest
Re: how to create custom data for Matching CiviCRM Field in "Import Contacts" ?
April 01, 2010, 10:36:18 am
Ya that's work Yashoda. Indeed you are goddess  :).

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • how to create custom data for Matching CiviCRM Field in "Import Contacts" ?

This forum was archived on 2017-11-26.