# Nested RadzenTemplateForm

**URL:** <https://forum.radzen.com/t/nested-radzentemplateform/7783>\
**Category:** Blazor WebAssembly\
**Created:** [May 11, 2021, 6:36pm UTC](https://forum.radzen.com/t/nested-radzentemplateform/7783 "2021-05-11T18:36:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdiapice](https://forum.radzen.com/letter_avatar_proxy/v4/letter/j/6bbea6/32.png) [@jdiapice](https://forum.radzen.com/u/jdiapice)\
**Post date:** [May 11, 2021, 6:36pm UTC](https://forum.radzen.com/t/nested-radzentemplateform/7783/1 "2021-05-11T18:36:56Z")

</div>

I am attempting to use a Nested RadzenTemplateForm. I have a class such as this

Class Ingredient  
{  
string Name;  
List Items  
}

When Creating a new Ingredient i have a RadzenTemplateForm which when submitted will save the entire Ingredient (name and items).

I have another nested RadzenTemplateForm which is for the Items itself ( i want to be able to validate the inputs and make them required). When submitted it simply takes the NewItem and adds it to the Items list on Ingredient.

With the nested TemplateForms i get an exception saying i need to define a ChiledContent Context=x to differentiate the context. I went ahead and did that (it jacked up my formatting) but when submitting it does not trigger the validation. It does call the InvalidSubmit however.

Any thoughts as to how to handle this properly

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [May 11, 2021, 6:48pm UTC](https://forum.radzen.com/t/nested-radzentemplateform/7783/2 "2021-05-11T18:48:15Z")

</div>

Hi @jdiapice,

I’m afraid that nested forms are not supported.

---

<div class="post-metadata">

**Author:** ![jdiapice](https://forum.radzen.com/letter_avatar_proxy/v4/letter/j/6bbea6/32.png) [@jdiapice](https://forum.radzen.com/u/jdiapice)\
**Post date:** [May 11, 2021, 7:18pm UTC](https://forum.radzen.com/t/nested-radzentemplateform/7783/3 "2021-05-11T19:18:30Z")

</div>

Is there a way to trigger Validation on RequiredValidator via the @Ref?
