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 Profiles (Moderator: Dave Greenberg) »
  • Display value of addressee & greeting fields in a public profile
Pages: [1]

Author Topic: Display value of addressee & greeting fields in a public profile  (Read 639 times)

Eliet Henderson

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 4
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 7
  • MySQL version: 5.0
  • PHP version: 5.2
Display value of addressee & greeting fields in a public profile
February 22, 2011, 12:03:53 pm

Hello, is there a way to display the value of the addressee and greeting fields in a profile? Currently when I include those fields, it shows up in like so:

"Addressee:  {contact.first_name}{ }{contact.last_name}"  rather than "Addressee: Joe Smith"

I'd like to give users the option to update their addressee and greeting fields when editing their contact info.

Thanks.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Display value of addressee & greeting fields in a public profile
February 22, 2011, 09:53:27 pm
Did you try this

"Addressee:  {contact.addressee}"

Hth
Kurund
Found this reply helpful? Support CiviCRM

Eliet Henderson

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 4
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 7
  • MySQL version: 5.0
  • PHP version: 5.2
Re: Display value of addressee & greeting fields in a public profile
February 23, 2011, 10:09:31 am

Thanks for the response, Kurund, but I think we're talking about two different things. I'm trying to send a checksum link to a user to update their contact information, so that when they go to the url, they see a form that's already filled in with their existing contact information (name, address, email). I've set up a profile that displays those fields, and the form populates, for example, First Name: [Joe], Last Name: [Smith] and Joe Smith can type over [Joe] to correct it to [Joey] or whatever.

When I include the field Addressee in the profile, it displays in the form as a dropdown menu; the first option is {contact.first_name}{ }{contact.last_name} and the second option is Customized. If you select Customized, a new blank field appears to type in the desired Addressee. Essentially, it behaves like the field does from the admin side. I'm wondering if there's a way to have it populate the form with the value of the field, i.e. {contact.addressee}.

Thanks again.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Display value of addressee & greeting fields in a public profile
February 24, 2011, 02:34:11 am
Quote
I'm wondering if there's a way to have it populate the form with the value of the field, i.e. {contact.addressee}.
I think for this purpose you can use buildForm hook and populate the text box.

Does this make sense?

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Display value of addressee & greeting fields in a public profile

This forum was archived on 2017-11-26.