Selected items + form

Showing results for 
Search instead for 
Did you mean: 
Member II

Selected items + form

I have 

   <action type="action-link" id="onEdit" permission="Write" label="multi-edit-document.edit" />

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">

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.

3 Replies
Member II

Re: Selected items + form

It is the right way to do this? (Or do I have to create a webscript and create my own form in .ftl?)

Senior Member

Re: Selected items + form

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 



Member II

Re: Selected items + form

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