Kentico Custom Form Control: Required Checkbox

Kentico is great but nobody is perfect!  One small detail they’ve missed is a checkbox control that you can set to be “required”.  By required I mean “You have to check this box”.  After doing some Googling, I found this thread which confirmed my suspicion:

http://devnet.kentico.com/Forums/f45/t17269/Making-a-Required-CheckBox-in-Alternative-Form.aspx?replyto=17359

“We have validators for empty values, which means that if some field have “Allow empty value” property disable and is not filled (is null), validator will appear.

But checkbox control is never null. It is true, or false, but never null. So you can’t validate it by this simple way”

So, as suggested, I whipped up the Form Control, and have provided the exported control as a download!  Download the Custom Required Checkbox Form Control

blog comments powered by Disqus