Current Lesson
Course Content
Course Content

ContactCustomFields Object

Has an attribute for each custom field with an interpolation key defined.

Eg. if you have a custom field with interpolation key set to "twitter_handle", then you can access that as just "twitter_handle" on this object, eg. {{ customer.fields.twitter_handle }}.

You can also access a subfield specifically, eg. {{ customer.fields.twitter_handle_value }} or {{ customer.fields.home_address_postal_code }}.

If you don't specify a subfield, you'll get a presentable version of the value, eg. for Twitter handle it'll include the @ sign and be a link to their Twitter profile.

Last updated 6 Jan 2021.