Asked by Matt on Aug 20, 2024
Matt is seeking better documentation for fields.js, specifically on importing global fields/groups and handling visibility paths.
Answered by Matt
Matt shares his method: Export functions returning field definitions from a central `components.js` file. In the module's `fields.js`, `require` these functions and call them to build the field array. Andreas also shared a link to the iGoMoon `hubspot-fields-js` library which could help structure this.