[ https://issues.apache.org/jira/browse/OFBIZ-12825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mekika Leila updated OFBIZ-12825: --------------------------------- Affects Version/s: Upcoming Branch > Form html validation not working correctly inside a modal > --------------------------------------------------------- > > Key: OFBIZ-12825 > URL: https://issues.apache.org/jira/browse/OFBIZ-12825 > Project: OFBiz > Issue Type: Bug > Components: ALL COMPONENTS > Affects Versions: Upcoming Branch > Reporter: Mekika Leila > Assignee: Mekika Leila > Priority: Minor > Fix For: Upcoming Branch > > Attachments: OFBIZ-12825.patch > > > Description: When submitting a form with required fields inside a modal, the > html validation does not work and form is submitted even if the required > fields are empty. > To reproduce: > Go to the following page on a trunk environment (with demo data) and > click on the "Create workeffort" menu button to open the modal: > > [https://localhost:8443/workeffort/control/EditWorkEffortNotes?workEffortId=DEFAULT_TASK] > > Submit the form without filling the required fields: the form will be > submitted and an error will be returned from service validation > > Once the corrective patch is applied (it seems to need a restart/rebuild for > common-theme cache to be updated), the form validation is blocked and you > should see the html error message "This field is required" -- This message was sent by Atlassian Jira (v8.20.10#820010)