-
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
Updating to Core version 3.0.6 from 2.0.76 broke custom field validation on submit #1175
Comments
@mnahmias, would you mind providing the full code for the custom core component you developed? Given the different BEM structure of the component, I presume you've crafted a custom view layer akin to the one illustrated in this example: https://github.com/adobe/aem-core-forms-components/blob/master/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/clientlibs/site/js/textinputview.js#L29. If you've implemented something similar, and still facing an issue, could you kindly share the complete sample ? This would assist us in replicating the issue on our end. |
Here's the custom field js I have currently
|
@mnahmias, I've recently developed a new core component utilizing the code you supplied, and I've confirmed that validations are functioning as expected. You can review the pull request here: #1179. It seems that the client library category might have been overlooked in either the page component or the template policies. You can search for the client library category In our latest release, version 3.0.8, we have eliminated the code related to exposing individual component classes to FormView. You can find more details about this update in the release notes: https://github.com/adobe/aem-core-forms-components/releases/tag/core-forms-components-reactor-3.0.8 |
Thanks, this resolved our issue |
Expected Behaviour
Clicking submit triggers validation on the custom field
Actual Behaviour
Clicking submit triggers validation on non custom fields as expected, but does not trigger validation on the custom field
Reproduce Scenario (including but not limited to)
Steps to Reproduce
<div class="cmp-adaptiveform-textinput__label-container">
becomes<div class="cmp-adaptiveform-newcomponentname__label-container">
AEM Version (mention the exact version in case of cloud SDK)
2023.12.14697.20231215T125030Z-231200
AEM Forms Version
2023.10.25.00-231200
The text was updated successfully, but these errors were encountered: