This is for: Kentico 11, kentico forms
I have been tracing an Accessibility violation caused by the CMSCheckbox. Finally found the issue. It seems kentico is forcing the label of the checkbox to be rendered even though it is empty. It is doing this by setting the Text property of the checkbox to a none breaking space if I do not set it to something.
I am using the CMSCheckbox in a form with a caption. I need the caption to be non empty as I use it for something else on submission of the form. Since the caption is a label for the same checkbox this violates yet another Accessibility rule of only having one label per control.
My question is: - Why has kentico done this? Why is the CMSCheckbox forced to always have a label when asp does not force it?