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 (Moderator: Dave Greenberg) »
  • Mailing Labels and Custom Data
Pages: [1]

Author Topic: Mailing Labels and Custom Data  (Read 12090 times)

jlhurd

  • Guest
Mailing Labels and Custom Data
June 29, 2007, 02:31:13 pm
Hi,

I'm trying to display a custom data field on the mailing labels, but I can't seem to find the proper token to use.  On a mail-merge, I would use something like this "{contact.custom_4}", but that doesn't work for the mailing address labels.  Does anybody know how to get custom data to work in mailing labels?

Thanks!

Josh

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Mailing Labels and Custom Data
June 29, 2007, 09:20:34 pm
Josh - Custom fields are not available to Mailing Label output at this time. The available tokens are listed in the rollover help next to the Mailing Label format field in Administer CiviCRM >> Global Settings >> Address Settings (basically name and location fields).

What type of info are you trying to include in the labels?

If you're interested in implementing / adding this feature for a future release - catch us on IRC to discuss. We are going to be doing significant changes in the way custom fields are modeled for 2.0 - so that would be a good time to look at including this.

Protect your investment in CiviCRM by  becoming a Member!

jlhurd

  • Guest
Re: Mailing Labels and Custom Data
July 09, 2007, 01:13:06 pm
I created a custom field which contained the organizations that the individuals worked for.  We need our mailing labels to have the individuals' names in addition to their employers' names.  I know that that field will be a built-in option in 1.8.  But it still seems that since it is not associated with the address table, that it will not be able to be used in mailing labels (am I correct in this assumption?)

I would be interested in implementing the feature, however, I am bogged down with this current CiviCRM customization right now, and won't be able to do anything on the side for the next few months.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Mailing Labels and Custom Data
July 09, 2007, 02:56:28 pm

Yes, you are correct in assuming that the organization will not be able to be used in the mailing label for 1.8

When u have the time to implement this feature please come and chat with us on IRC and we'll get you started

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

resga

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 3
  • CiviCRM version: 3.4.2
  • CMS version: Drupal
  • MySQL version: 5.1.41
  • PHP version: 5.3
Re: Mailing Labels and Custom Data
May 17, 2011, 10:01:19 am
I know this is a very old thread, I just want to make sure that other users who might search for 'civicrm "Address Settings" custom fields' in a search engine find out that this is now possible.

You can find your accessible tokens by searching for some contacts, select "Print PDF Letter for...", insert the desired tokens, and copy them over to the edit screen for Address Labels, "Address Settings".
Make sure you don't have a trailing white space after the end of your tokens, they will act funny if there is no token value.

Working example of Address labels:

{contact.first_name} {contact.last_name}
{contact.custom_4} {contact.custom_5}
{contact.supplemental_address_1}
{contact.street_address}
{contact.supplemental_address_2}
{contact.postal_code} {contact.city}
{contact.country}

nzcodarnoc

  • I’m new here
  • *
  • Posts: 4
  • Karma: 1
  • CiviCRM version: 4.3.2
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3.10
Re: Mailing Labels and Custom Data
August 19, 2013, 06:33:57 pm
Hi there,

I'm adding this because this thread came up top of a Google search.

CiviCRM now supports adding custom fields to mailing labels, all the instructions to do so are here:

wiki.civicrm.org/confluence/display/CRMDOC40/Mail-merge+Tokens+for+Contact+Data

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Mailing Labels and Custom Data

This forum was archived on 2017-11-26.