Custom validation for opportunity fields does not execute when users submit the Fiori opportunity creation form. We’ve implemented client-side validation to enforce data quality rules (e.g., expected close date must be within fiscal year, deal size must match product category ranges), but the form submits without running our validation logic.
Validation handler in controller:
onBeforeSubmit: function(oEvent) {
var isValid = this.validateOpportunityData();
if (!isValid) {
oEvent.preventDefault();
}
}
The form submission goes through even when validation should fail, creating opportunities with invalid data. I’ve attached the handler to what I thought was the submit event, but it’s never being called. The UI5 event handling documentation shows various form events, but I’m not sure which one is the correct interception point for Fiori opportunity forms. This is creating significant data quality risk as opportunities are being created without proper validation. Has anyone successfully implemented custom validation logic in the standard Fiori opportunity management app?