The Extended Fields API provides functionality for creating and managing extended field definitions. Extended fields enable you to retrieve and store specific information relevant to your site. Basic fields, such as name, email, and phone, are stored in the contact's default properties. Additional custom contact properties are stored in extended fields.
With the Extended Fields API, you can:
It is important to note the following points before you begin to code:
info.extendedfields
. To manage the extended fields of an individual contact, use the Contacts API.To use the Labels API, import { extendedFields }
from the wix-crm.v2
module.
Functions in the Extended Fields API are restricted and only run if you elevate permissions using the wix-auth
elevate()
function.
Warning: Elevating a function allows it to be called by any site visitor. Exercise caution to prevent security vulnerabilities.
contact
object under info.extendedFields
. There are 2 types of extended fields: