Location
Location fields use dataType: 'object'. They store address and coordinate information as a structured value.
Common location properties include address text, country, province, city, district, street, postcode, point of interest, and coordinates. The exact populated properties depend on the provider and field configuration.
const rawLocation = record.data.delivery_location;
const location =
rawLocation && typeof rawLocation === 'object' && !Array.isArray(rawLocation)
? rawLocation as Record<string, unknown>
: {};
const city = String(location.city || '');
const address = String(location.address || '');
Use field configuration from context.formSchema.field when a script needs to know which location parts are required.