Asked by Twentyninetimes on Jul 24, 2024
Twentyninetimes (tech817) is looking for a way to combine macros with fields to avoid repeated field creation in modules, suggesting a feature to attach fields directly to macros or use module partials.
Answered by Anton
Anton Bujanowski (info748) suggests using fields.js to dynamically generate fields, providing a workaround for reusing field configurations without manual duplication. Link: https://developers.hubspot.com/docs/cms/building-blocks/modules/write-fields-using-javascript