# Targetting module fields in a group within a template

**URL:** <https://community.hubspot.com/t/targetting-module-fields-in-a-group-within-a-template/70015>\
**Category:** CMS Development\
**Tags:** design-manager\
**Created:** [November 25, 2022, 5:24pm UTC](https://community.hubspot.com/t/targetting-module-fields-in-a-group-within-a-template/70015 "2022-11-25T17:24:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MattC47](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mattc47/32/99782_2.png) [@MattC47](https://community.hubspot.com/u/MattC47)\
**Post date:** [November 25, 2022, 5:24pm UTC](https://community.hubspot.com/t/targetting-module-fields-in-a-group-within-a-template/70015/1 "2022-11-25T17:24:09Z")

</div>

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.

```lia-code-sample
{% 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

---

<div class="post-metadata">

**Author:** ![KajBob](https://avatars.discourse-cdn.com/v4/letter/k/5f9b8f/32.png) [@KajBob](https://community.hubspot.com/u/KajBob)\
**Post date:** [November 26, 2022, 5:58pm UTC](https://community.hubspot.com/t/targetting-module-fields-in-a-group-within-a-template/70015/2 "2022-11-26T17:58:53Z")

</div>

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)](https://developers.hubspot.com/docs/cms/building-blocks/modules/using-modules-in-templates) under the field parameters section.

---

<div class="post-metadata">

**Author:** ![KajBob](https://avatars.discourse-cdn.com/v4/letter/k/5f9b8f/32.png) [@KajBob](https://community.hubspot.com/u/KajBob)\
**Post date:** [November 26, 2022, 6:00pm UTC](https://community.hubspot.com/t/targetting-module-fields-in-a-group-within-a-template/70015/3 "2022-11-26T18:00:34Z")

</div>

so for your case it would be something like this:

```lia-code-sample
feature_content = {
 "heading": "Key Objectives"
}

```

---

<div class="post-metadata">

**Author:** ![MattC47](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mattc47/32/99782_2.png) [@MattC47](https://community.hubspot.com/u/MattC47)\
**Post date:** [November 29, 2022, 3:30pm UTC](https://community.hubspot.com/t/targetting-module-fields-in-a-group-within-a-template/70015/4 "2022-11-29T15:30:57Z")

</div>

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