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 CiviMail (Moderator: Piotr Szotkowski) »
  • Custom Data tokens?
Pages: [1]

Author Topic: Custom Data tokens?  (Read 747 times)

bigtalljv

  • I post occasionally
  • **
  • Posts: 32
  • Karma: 1
Custom Data tokens?
March 09, 2010, 11:19:12 am
I thought I had seen something about this but I can't find it.  I have added two custom fields under custom data and I wanted to be able to reference them in e-mails.  Is there an easy way to do that?

Thanks,
Jason

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: Custom Data tokens?
March 09, 2010, 12:49:52 pm

you can use: {contact.custom_FIELDID}

replace FIELDID with the id of the custom field in your DB. the insert token ajax widget on the compose screen should be able to help you with this

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

bigtalljv

  • I post occasionally
  • **
  • Posts: 32
  • Karma: 1
Re: Custom Data tokens?
March 09, 2010, 12:52:39 pm
I was typing below as you reply came in.

I tried that and that is the text that shows up in my e-mail, {contact.custom_2}


Ok, after more reading it looks like what I need to use are token hooks, unfortunately I have no idea how to do that.  I am trying to pull some custom data from CiviEvent, my custom data says it for "Participants" and it is a 3 selection radio box.  I would like to be able to send a CiviMail message that says, " thank you for registering, we have you down for "selection X".  For the most part these will be one off messages not to groups (yet).

Thanks,
Jason

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Custom Data tokens?

This forum was archived on 2017-11-26.