# Does the Required Field Support Templating

**URL:** <https://community.replicated.com/t/does-the-required-field-support-templating/1180>\
**Category:** Packaging an application\
**Tags:** kots\
**Created:** [April 13, 2023, 1:34pm UTC](https://community.replicated.com/t/does-the-required-field-support-templating/1180 "2023-04-13T13:34:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/nick/32/655_2.png) [@Nick](https://community.replicated.com/u/Nick)\
**Post date:** [April 13, 2023, 1:34pm UTC](https://community.replicated.com/t/does-the-required-field-support-templating/1180/1 "2023-04-13T13:34:27Z")

</div>

This is a similar question to the following [issue](https://community.replicated.com/t/does-the-readonly-field-in-a-config-field-support-templating/923).

I’m trying to determine if the required field allows templating using the ConfigOptionEquals function - we’d like to provide a checkmark box on the kots config page asking if the user is going to be providing an external, optional dependency, and then require additional fields on the kots config page if they enable it.

It was mentioning in the above story that there was a plan to mark items that support templating, but I wasn’t sure if I should expect that to be [here](https://docs.replicated.com/reference/custom-resource-config#required) or elsewhere.

Thanks!

---

<div class="post-metadata">

**Author:** ![Paige\_Calvert](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/paige_calvert/32/632_2.png) [@Paige\_Calvert](https://community.replicated.com/u/Paige_Calvert)\
**Post date:** [April 19, 2023, 5:20pm UTC](https://community.replicated.com/t/does-the-required-field-support-templating/1180/2 "2023-04-19T17:20:08Z")

</div>

Hi Nick! This is Paige, from the Docs team at Replicated. We just updated the topic to clarify which properties in the Config custom resource support templating, and which do not: [Config | Replicated Docs](https://docs.replicated.com/reference/custom-resource-config#item-properties)

As for the specific use case that you mention, the required field does not support templating. But, you might be looking for the `when` property, which allows you to use templated conditional statements to show or hide fields from users. For more information on that, including an example, see [Config | Replicated Docs](https://docs.replicated.com/reference/custom-resource-config#when-1)
