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) »
  • Need to exclude some custom data from confirmation emails
Pages: [1]

Author Topic: Need to exclude some custom data from confirmation emails  (Read 565 times)

EBArtsCreativeIndustries

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
Need to exclude some custom data from confirmation emails
May 25, 2011, 12:19:48 pm
I need to exclude some custom data fields from displaying on the outgoing confirmation emails.

I'm pretty sure it needs to go in here somewhere, but I can't seem to figure out how to exclude the items using their id:

 {if $customPost}
      <tr>
       <th {$headerStyle}>
        {$customPost_grouptitle}
       </th>
      </tr>
      {foreach from=$customPost item=customValue key=customName}
       {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
        <tr>

Any help is appreciated. Thank you :)

EBArtsCreativeIndustries

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
Re: Need to exclude some custom data from confirmation emails
May 28, 2011, 07:12:00 am
Anyone have any ideas at all??

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: Need to exclude some custom data from confirmation emails
May 28, 2011, 07:47:51 am

Easier to use customName rather than customID in the below case. I'd follow the example of the tracking fields which are also suppressed from the email message

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Need to exclude some custom data from confirmation emails

This forum was archived on 2017-11-26.