As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hi there,
I just followed this guidance https://docs.alfresco.com/community/tasks/ws-forms-process.html to create multipart forms with webscript and it worked perfectly. Now i'd like to include another library.js and use it to call function in multipart.post.js, please guilde me how to achieve this ! thank you.
I'm not sure whether I understood what you want to achieve.
Multipart.post.js is executed in server side , if you want to include js libary in freemarker,it is excuted in client side.
If you want to call a client side js in freemarker,you can include it like this
<script type="text/javascript" src="${url.context}/scripts/xxxx.js"></script>
If you want to call another js in multipart.post.js,you can import it like following.
<import resource="classpath:alfresco/templates/webscripts/***/***/***.js">
Hi,
multipart.post.js is server side file and library.js is client side so i dont think you can achive this.