Form Handler - A form can be submitted without providing any value for required checkboxes and multiselects
Required field validation is not working for checkboxes and multiselects in form structures.
The method: public void validateContentlet(Contentlet contentlet,List
if(!UtilMethods.isSet(o) && (st.getStructureType() != (Structure.STRUCTURETYPEFORM))) { cve.addRequiredField(field); hasError = true; continue; }
therefore, when the structure is a form, it ignores the required condition for these type of fields.
This is a Show Stopper for the Secure Form project. We've temporarly commented out the "&& (st.getStructureType() != (Structure.STRUCTURETYPEFORM)" in that if to be able to continue with our tests while R&D defines a permanent fix.
Secure Form environment is running dotCMS 2.0 over postgres
required now respected on submit