Unable to load custom js in edit/preview mode in adaptive form
Hi,
I am seeing an issue on trying to load a custom js on Adaptive form (edit/preview mode) on AEM author instance, but the same custom js is loading fine on AEM publisher.
Adaptive form in created on AEM 6.5.24 and using foundation component.
The custom js is located here: /apps/<project_name>/clientlibs/clientlib-adaptive-forms/custom.js
I want to initiate this custom.js on a button click on adaptive form.
So in the rule editor for the button, I see an error, on trying to search for the custom function within custom.js. It shows as undefined variable. The reason is that, the custom.js is not loading on both edit/preview mode.
All the files within this /apps/<project_name>/clientlibs is not loading on AEM author, but the it loads fine when the adaptive form in published on aem publisher?
Any suggestions please?
