10-24-2012 07:34 AM
<config evaluator="model-type" condition="cm:content">
<forms>
<form id="printorder">
<field-visibility>
<show id="sendto" force="true" />
<show id="contact" force="true" />
<show id="bestdata-objnr" force="true" />
<show id="bestdata-objnamn" force="true" />
….
<appearance>
<field id="bestdata-objnr" label-id="label.printorder.bestdata-objnr" mandatory="true" set="copyfirm">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<field id="bestdata-objnamn" label-id="label.printorder.bestdata-objnamn" set="copyfirm" mandatory="true">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
and then calling it with var templateUrl = YAHOO.lang.substitute(
Alfresco.constants.URL_SERVICECONTEXT + "components/form?itemKind={itemKind}&itemId={itemId}" +
"&mode={mode}&submitType={submitType}&formId={formId}&showCancelButton=true",
{
itemKind : "type",
itemId : "cm:content",
mode : "create",
submitType : "json",
formId : "printorder"
});
The displayed form is then posted to a custom webservice url, not the default form processor.09-16-2013 10:18 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.