-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rule Editor and "is submitted successfully" event on "FORM" #1283
Comments
@arunattri26 Could you take a look at this issue ? |
Hi @kisonay, I have verified that it is a bug. We will fix it. |
Hi @arunattri26 |
It is my understanding that the fix will be included in SP22. |
@arunattri26 the fix of saving the rule on successfulSubmission works but the rule action is not triggered on that event. I checked the code of core-forms-components-all-1.1.54 FormContainer v2 logic /apps/core/fd/components/form/container/v2/container/clientlibs/site/js/formcontainerview.js and it doesn't contain a "submitSuccess" code where the state.events.submitSuccess is true and the rule code is executed. Can you please check that? |
The fix is part of SP22. Please raise a hotfix request for an earlier Service Pack if required. |
Expected Behaviour
I expect to be able to create a container level rule via the rule editor, particularly when a form is successfully submitted.
Actual Behaviour
The rule editor cannot be invoked on the form container. When you enter the rule editor via a different component and select "FORM", making changes fail.
Steps to Reproduce
Navigate to a form based on af core components, enter the rule editor and try to create a rule at the "FORM" level with the event of "is submitted successfully", click done and view the console.
Platform and Version
Core Components Version: 2.24.2
Core Form Components: 1.1.32
AEM Version (mention the exact version in case of cloud SDK)
6.5.18
AEM Forms Version
6.0.1016
Sample Code that illustrates the problem
Logs taken while reproducing problem
When you get into the rule editor and configure a rule on the form container, when clicking done, you see the following error in the console:
After further investigation, the event being invoked is as follows:
But when we take a look at the clientlib,
/libs/fd/af-expeditor/clientlibs/authoring/js/RuleSaveHandler.js
, we see "Successful Submission" missing from theeventMapping
With the mapping missing, the following code (starting on line 122) causes "name" to be undefined causing the error and preventing the rule from being processed.
The text was updated successfully, but these errors were encountered: