Contact

Extends Object. The Contact object represents data of Contacts such as page authors, current user information or order customer.

For security reasons a Contact object is always supplied by a controller and never instantiated within EV Script. 

Properties
biography

Type String

A description about the contact. This can be used for short author biographies.

company

Type String

Company name.

email

Type String

Email address.

firstname

Type String

First name.

id

Type Number

The system ID for this contact.

hasNoType

Type Boolean

Determines whether the Contact data has no representation. This is set for legacy reasons, but should not be encountered from Evance 5+.

hasPassword

Type Boolean

Determines whether the Contact has set a password, this is used for the purposes of user invitations or alerts. You are unable to gain access to any password data.

isBranch

Type Boolean

Determines whether the Contact data represents a Branch of the current Account. Generally this is encountered within Store Finders.

isGuest

Type Boolean

Determines if the Contact data is from a non-registered user of the website. Guest data is rarely accessible, and generally only available when generating emails, or order tracking portals.

isHQ

Type Boolean

Determines whether the Contact data represents the business details of the Account.

isRecipient

Type Boolean

Determines whether the Contact data represents a Campaign List recipient. Recipient data is rarely accessible, and generally only available within email confirmation templates.

isUser

Type Boolean

Determines if the Contact is a registered user of the website.

lastname

Type String

Last name (also known as family name or surname).

mobile

Type String

The Contact's mobile phone number.

phone

Type String

Daytime/primary phone number for the contact.

position

Type String

Occupational position / job title of the contact.

registeredNumber

Type String

The Contact's Company Registration Number if applicable.

taxNumber

Type String

The Contact's VAT/Tax Registration Number if applicable.

thumbnail

Type Url

The image/avatar of the contact.

username

Type String

The username within the system for the contact (not all users have one).

website

Type String

The website address for the contact.



Methods
address

Returns Address

The postal Address of the contact.

fullname

Returns String

Combined first & last name of the contact.

toString()

Returns String

Returns the full name of the Contact.