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 CiviEvent (Moderator: Yashodha Chaku) »
  • Hiding some profile fields in event registration confirmation email
Pages: [1]

Author Topic: Hiding some profile fields in event registration confirmation email  (Read 834 times)

smallbiz

  • I post occasionally
  • **
  • Posts: 43
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Joomla 2.5, 3.3
  • MySQL version: 5
  • PHP version: 5.2
Hiding some profile fields in event registration confirmation email
August 09, 2011, 02:52:32 pm
We're using civiCRM 2.2

We have set up an event registration form that uses a pre and post-profile. The post-profile contains some details we require from our registrants which we'd prefer not to email back to them as part of their confirmation email.

We can't see how to disable a field so that it isn't included in the confirmation email -- can this be done in 2.2? And if not, can it be done in any newer version of civiCRM ?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Hiding some profile fields in event registration confirmation email
August 09, 2011, 03:51:29 pm
You can potentially add some logic to the event receipt template (2.2) or the Event Confirmation Message Template (3.4 / 4.0) which skips certain fields in the foreach loop where profile fields are output. This "logic" would apply to all event confirmations unless you also made skipping conditional event ID or event title.

You'll need to get a bit up to speed on the Smarty templating language to do this:
http://www.smarty.net/docsv2/en/
Protect your investment in CiviCRM by  becoming a Member!

smallbiz

  • I post occasionally
  • **
  • Posts: 43
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Joomla 2.5, 3.3
  • MySQL version: 5
  • PHP version: 5.2
Re: Hiding some profile fields in event registration confirmation email
March 29, 2012, 09:53:46 am
What if I just remove that code segment... Could I then use tokens to insert some of the custom fields into the event confirmation email that sent to the attendee?

Alex Sondy

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: 4.0.7
  • CMS version: Drupal 7.2
  • MySQL version: 5.0.7
  • PHP version: 5.3.5
Re: Hiding some profile fields in event registration confirmation email
May 31, 2012, 10:44:36 am
Did you find a solution and mind to share it? I have the exact same problem.

Thank you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Hiding some profile fields in event registration confirmation email

This forum was archived on 2017-11-26.