I have a client that has been using the out of the box APS user interface where I have added a fair amount of Javascript (client side) within the Forms via the APS App Designer in order to meet some of their business needs. We are now preparing to move to ADF to handle more enhancement requests. We would like to leave the forms as untouched as possible during this, preferring to spend more time on customizing other ADF components like the Task List, adding ACS searches, etc.
My question: Will the Javascript that is embedded into the forms from the App Designer still work within ADF? I tried a quick test using ACS 1.7.0 and ADF 1.8 but it does not appear that the Javascript is executing. When I turn on debug mode, I can see the javascriptEvents (formRendered, formFieldBlur) but nothing is executing. Am I missing a step? Are there version combinations that allow this?
Many thanks. Very new to ADF so any assistance would be appreciated.
Solved! Go to Solution.
It has never been possible to execute AngularJS (known as Angular 1) code inside the Angular 2-5 framework. So the answer is no, it's not possible due to the framework architecture.
The ADF Form component provides Angular (not AngularJS) alternative where applicable. It is possible to use FormService to listen to form and stencil events, also creating custom Angular components (see more details here alfresco-ng2-components/extensibility.md at master · Alfresco/alfresco-ng2-components · GitHub )
It has never been possible to execute AngularJS (known as Angular 1) code inside the Angular 2-5 framework. So the answer is no, it's not possible due to the framework architecture.
The ADF Form component provides Angular (not AngularJS) alternative where applicable. It is possible to use FormService to listen to form and stencil events, also creating custom Angular components (see more details here alfresco-ng2-components/extensibility.md at master · Alfresco/alfresco-ng2-components · GitHub )
Thank you for your reply. I knew that custom stencils did not work within ADF but I was unaware that javascript embedded into the forms fell into that same category.
Discussions, help and advice about the Alfresco Development Framework.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.