Targetting module fields in a group within a template

Hi,

I am adding modules into a template layout and looking to set some predefined field values. This is working fine until I come across fields within a field group, where I can’t seem to find a way to target them.

{% module "__module_key_objectives" path="/trial-sfx-theme/modules/SFX-text-feature-image", label="SFX-text-feature-image", 
 feature_content.heading="Key Objectives",
%}

Using the field group to identify doesn’t seem to work, any ideas?

Thanks

yes, you need to pass it as an object I believe. You can find the documentation for that here Using modules in templates (hubspot.com) under the field parameters section.

so for your case it would be something like this:

feature_content = {
 "heading": "Key Objectives"
}

Ah that’s worked great, many thanks for your help!