09-12-2017 03:51 AM
I have
<multi-select>
<action type="action-link" id="onEdit" permission="Write" label="multi-edit-document.edit" />
</multi-select>
Than I have js maps to this action. It works fine.
I need to create my own form. How to do this?
I try create in share-config-custom own form with id onEdit.
<config evaluator="string-compare" condition="onEdit">
<forms>
//something
</forms>
</config>
And in the js:
var templateUrl = YAHOO.lang.substitute(Alfresco.constants.URL_SERVICECONTEXT + "components/form?itemKind={itemKind}&itemId={itemId}&destination={destination}&mode={mode}&submitType={submitType}&showCancelButton=true", {
itemKind: "action",
itemId: "onEdit",
mode: "edit",
submitType: "json",
destination: nodeRef });
But it is still writing: A form could not be found for item: [action]onEdit.
What is wrong? Thanks.
09-12-2017 09:02 AM
It is the right way to do this? (Or do I have to create a webscript and create my own form in .ftl?)
09-12-2017 12:46 PM
Hi, Kamila
To create a custom form on custom action of document please refer the example from this doc will help you.
Adding new actions to the Document Library | Alfresco Documentation
Thanks,
Kalpesh
09-13-2017 03:25 AM
Thank you for your quick answer.
I read this articles about million times, but no answer.
Problem is, that there is no action, there is only multi-selected item.
Explore our Alfresco products with the links below. Use labels to filter content by product module.