Hi,
test.ftl:
<@templateHeader/>
<@templateBody type="alfresco-guest">
<@region id="myForm" scope="template" />
</@>
<@templateFooter/>
My template instance
<template-instance>
<components>
<component>
<scope>template</scope>
<region-id>myForm</region-id>
<source-id>myForm</source-id>
<url>/com/solution/form</url>
</component>
</components>
</template-instance>
form folder contains the following files: form.get.html.ftl, form.get.js,form.get.html.desc.xml
form.get.js:
function main() {
// Widget instantiation metadata...
var widget = {
id : "Create",
name : "Alfresco.component.Create",
options : {
myparam: url.args['myparam']
}
};
model.widgets = [widget];
}
main();
If I call ...url/page/test.ftl?myparam=123
How I can catch the value of myparam in the client javascript form.js?
Thanks
Jamil