1) Field Definition: I created custom/Espo/Custom/Resources/metadata/fields/newAddress.json based on application/Espo/Resources/metadata/fields/address.json but
without the State and Postal Code fields. The City & Country fields have a "view": "views/fields/address-city" and "view": "views/fields/address-country" respectively.
2) Views: I went to client/custom/src/views/fields/ to create the views newAddress-city.js, newAddress-country.js, and newAddress.js like how address-city.js, address-country.js, and address.js are created out of the box in client/src/views/fields/
My question is that both address-city.js & address-country.js import:
Code:
import VarcharFieldView from 'views/fields/varchar'