# Blazor RequiredValidator with TValue of Guid

**URL:** <https://forum.radzen.com/t/blazor-requiredvalidator-with-tvalue-of-guid/6382>\
**Category:** Radzen.Blazor Components\
**Created:** [January 20, 2021, 8:05pm UTC](https://forum.radzen.com/t/blazor-requiredvalidator-with-tvalue-of-guid/6382 "2021-01-20T20:05:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![auzick](https://forum.radzen.com/user_avatar/forum.radzen.com/auzick/32/5734_2.png) [@auzick](https://forum.radzen.com/u/auzick)\
**Post date:** [January 20, 2021, 8:05pm UTC](https://forum.radzen.com/t/blazor-requiredvalidator-with-tvalue-of-guid/6382/1 "2021-01-20T20:05:26Z")

</div>

It seems as though the required field validator is not working in a case where the data an IEnumerable of POCO's. Perhaps Radzen is seeing a default guid value of {00000000-0000-0000-0000-000000000000} instead of null?

```
<RadzenDropDown @bind-Value=@(subscription.TriggerId) Name="Trigger" AllowClear="false"
TValue="Guid" AllowFiltering="false" ValueProperty="Id" TextProperty="FullName"
Context="trigger" Data=@triggers />
<br />
<RadzenRequiredValidator Popup="false" Component="Trigger" Text="Trigger is required"
Style="position: absolute" />
```

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [January 21, 2021, 5:30am UTC](https://forum.radzen.com/t/blazor-requiredvalidator-with-tvalue-of-guid/6382/2 "2021-01-21T05:30:08Z")

</div>

Hi @auzick,

Try setting the DefaultValue property to Guid.Empty

```auto
<RadzenRequiredValidator Popup="false" Component="Trigger" Text="Trigger is required"
Style="position: absolute" DefaultValue=@Guid.Empty />

```
