# RadzenRequiredValidator when checkbox is unchecked

**URL:** <https://forum.radzen.com/t/radzenrequiredvalidator-when-checkbox-is-unchecked/13463>\
**Category:** Radzen Blazor Studio\
**Created:** [March 15, 2023, 8:40pm UTC](https://forum.radzen.com/t/radzenrequiredvalidator-when-checkbox-is-unchecked/13463 "2023-03-15T20:40:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![techsc](https://forum.radzen.com/letter_avatar_proxy/v4/letter/t/7ba0ec/32.png) [@techsc](https://forum.radzen.com/u/techsc)\
**Post date:** [March 15, 2023, 8:40pm UTC](https://forum.radzen.com/t/radzenrequiredvalidator-when-checkbox-is-unchecked/13463/1 "2023-03-15T20:40:14Z")

</div>

The RadzenRequiredValidator is implemented automatically during code generation by Radzen Blazor Studio 1.5.2.  
Unfortunately, all these checkboxes cannot be save to database as checked=bit set=true to SQL Server, since the RadzenRequiredValidator fires once a checkbox is not checked.

In a correct way, the RadzenRequiredValidator should fire only, as long as the check-box is in a unset-state, equal to NULL.

I have tried many different configurations. However, with no success.

SQL Field, for example:  
ALTER TABLE [dbo].[AspNetUsers] ADD CONSTRAINT [DF\_AspNetUsers\_PhoneNumberConfirmed] DEFAULT ((0)) FOR [PhoneNumberConfirmed]  
GO

Razor Code:

  
\<RadzenCheckBox @bind-Value="@aspNetUser.PhoneNumberConfirmed" Name="PhoneNumberConfirmed" /\>

---

<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:** [March 16, 2023, 7:35am UTC](https://forum.radzen.com/t/radzenrequiredvalidator-when-checkbox-is-unchecked/13463/2 "2023-03-16T07:35:30Z")

</div>

Hi @techsc,

I was able to reproduce the problem and we will do our best to provide fix for this in our next update. In the meantime you can remove the validator for this component.
