AnsweredAssumed Answered

How build custom form with "/components/form" script from a template-instances

Question asked by 4535992 on Nov 12, 2018

Hi i need to build a custom form from  template-instances and when i submit the form call a java action on alfresco.

I succesfuly call the action, but i found some difficulty to build the form.

 

Here the code i use on the template-instances:

 

<!-- Create Content Form -->
      <component>
         <region-id>service-my-create-content-form</region-id>
             <url>/components/form?itemKind=action&amp;itemId=service-my-create-content-action&amp;nodeRef={nodeRef}&amp;mimeType={mimeType}&amp;destination={destination}</url>
            <properties>
                <itemKind>action</itemKind>
                <itemId>service-my-create-content-action</itemId> <!-- my action ID reachead when i submit the form -->
                <mode>create</mode>
                <submitType>json</submitType>
                <formUI>true</formUI>
                <showCaption>true</showCaption>
                <showResetButton>true</showResetButton>
                <showCancelButton>true</showCancelButton>
                
                <editInline>true</editInline>             
                <destination>{nodeRef}</destination>
                <nodeRef>{nodeRef}</nodeRef>
                <redirect>/share/page/document-details?nodeRef={nodeRef}</redirect>
                
            </properties>
      </component>   

 

and here the result on the share app:

I can't understand how it works, how can i set the labels on this form, how can i decide what field remove or add?

 

A use case with all the source files can found on this other open question:https://community.alfresco.com/thread/239522-how-use-pagelink-to-call-a-action-backend

 

 

Ty for any help.

Greetings.

Outcomes