Skip to main content

Smart Fields

For storing addresses and phone numbers with managed validations and logic.

Smart fields are enriched field types offered by 8base. They provide structure, and sometimes logic, to the organization and validation of common data.

Smart Field Properties

  • Format: Whether the field stores a Phone Number or an Address.
  • Allow Multiple: Stores 0 or more Smart objects in an array.
  • Description: An optional text box where you can write information about the field.
  • Mandatory: Whether this field must have a value.

Smart field properties pane

Address

For persisting addresses in a field. The address field will display available fields in the Data Viewer and API Explorer.

type Address = {
country: !String;
street1: !String;
street2: String;
zip: !String;
city: !String;
state: !String;
};

Phone

For persisting phone numbers in a field. The phone field will display available fields in the Data Viewer and API Explorer.

type Phone = {
code: !String;
number: !String;
};