You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are investigating on migrating from AEM Foundation Forms Components to AEM Core Forms Components and we expect that we can listen to the same events on the guideBridge, namely guideBridge.on("submitStart") to take actions before the submit action and guideBridge.on("validationComplete") to take correct actions when the validation is complete
Actual Behaviour
Both events are no longer available in the AEM Core Forms Components
AEM Version (mention the exact version in case of cloud SDK)
AEM 6.5.19
AEM Forms Version
1.1.32
Sample Code that illustrates the problem
guideBridge.connect(function() {
// It's executed before submit
guideBridge.on('submitStart', (submitEvent) => {
// do things like showing a loading shield
});
//check if there are any validation errors
guideBridge.on('validationComplete', (validationEvent, payload) => {
if (payload.newText.length > 0) {
const error = {
errorList: payload.newText,
};
sendPostMessage('validation-failure', error);
} else {
sendPostMessage('validation-success', validationEvent.type);
}
});
});
The text was updated successfully, but these errors were encountered:
We have made certain GuideBridge events accessible for external applications to interact with in core components. However, not all events are exposed, as we advise against incorporating GuideBridge in core components due to their compatibility with headless use-cases.
The core components offer enhanced flexibility due to their modular design, leveraging a shared SDK that is also utilized in headless use-cases. The core component is inherently event-driven, providing a comprehensive set of events that can be accessed by subscribing to the form model (for use-cases where event is not exposed in GuideBridge) as demonstrated below.
Expected Behaviour
We are investigating on migrating from AEM Foundation Forms Components to AEM Core Forms Components and we expect that we can listen to the same events on the
guideBridge
, namelyguideBridge.on("submitStart")
to take actions before the submit action andguideBridge.on("validationComplete")
to take correct actions when the validation is completeActual Behaviour
Both events are no longer available in the AEM Core Forms Components
AEM Version (mention the exact version in case of cloud SDK)
AEM 6.5.19
AEM Forms Version
1.1.32
Sample Code that illustrates the problem
The text was updated successfully, but these errors were encountered: