Hey,
I am using Alfresco's WCM Web Forms to receive input from users and render HTML using Freemarker. My question is how do I take advantage of Web Scripts to render dynamic information at render time?
I have a Web Form that asks the user to input a title and a document path, and the form renders a download link in HTML. I also want to automatically find the size of the selected document and render that next to the title. I've created a Web Script that takes the storeId and file path as input and outputs the file's size in HTML. The Web Script queries Alfresco using the avm.lookupStore and store.lookupNode functions.
If I run the web script by manually passing in the storeId and file path it works well. What I'm stuck on, is how I can call this Web Script from my Web Form to include in my Web Form output?
Thanks for any help!