Is there a significant bug with Forms radio button validation?
Umbraco 7.9
Forms 7.0.0
Hi,
was using Forms 6.05, Umbraco 7.7.6. Upgraded to the above in attempt to fix this issue but it is still there.
When you have radio buttons and you want them mandatory, then you cannot submit the form, whether you click on them or not. The mandatory message comes up anyway.
This still seems to be an issue as of 20/02/19 - additionally, if you're using the bootstrap3-horizontal theme it has its own FieldType.RadioButtonList.cshtml file at:
Is there a significant bug with Forms radio button validation?
Umbraco 7.9 Forms 7.0.0
Hi,
was using Forms 6.05, Umbraco 7.7.6. Upgraded to the above in attempt to fix this issue but it is still there.
When you have radio buttons and you want them mandatory, then you cannot submit the form, whether you click on them or not. The mandatory message comes up anyway.
This seems like a significant bug?
Thanks,
I've fixed this. In FieldType.RadioButtonList.cshtml you need to change data-val-requiredlist to data-val-required
Seriously saved me some time. Thank you for posting your fix to this... Did you enter it into the issue tracker?
I can see an existing ticket here from 2013 which was marked as fixed: http://issues.umbraco.org/issue/CON-438
Seems to be a similar problem :)
This still seems to be an issue as of 20/02/19 - additionally, if you're using the bootstrap3-horizontal theme it has its own FieldType.RadioButtonList.cshtml file at:
~\Views\Partials\Forms\Themes\bootstrap3-horizontal\Fieldtypes
is working on a reply...