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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Add a custom name field to contact
Pages: [1]

Author Topic: Add a custom name field to contact  (Read 491 times)

bigfatrat

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.0.6
  • CMS version: Drupal 7.8
  • MySQL version: 5.1.41
  • PHP version: 5.3.2
Add a custom name field to contact
October 19, 2011, 10:57:34 am
Greetings,

I am totally new to CiviCRM. Normally I would just read the manuals and experiment with it, but I am in a bit of time crunch.

What is the proper way to add a "Chinese Name" field  (text field) to the contact data class? Do I need to first create a Custom Field Set and then add a Custom Field? It seems complicated this way, and more importantly the display in the resulted input form seems not as "integrated" as it should me.

Thanks a lot.

Andrew

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Add a custom name field to contact
October 20, 2011, 06:56:45 am
Yes, you need to create a custom data set and then add fields to the custom data set. You can select if you want to show the fields inline or in a special tab. If you want your custom data to show in a different way you can either
  • manipulate the form with the '<template>.extra.tpl functionality (see blog post http://civicrm.org/blogs/dave-greenberg/now-its-easier-add-custom-behaviors-templates
  • create custom templates as described in the developer guide: http://en.flossmanuals.net/civicrm-developer-guide/
  • use the buildForm hook as documented in the developer guide http://en.flossmanuals.net/civicrm-developer-guide/ and on the wiki http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviCRM+hook+specification
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Add a custom name field to contact

This forum was archived on 2017-11-26.