cancel
Showing results for 
Search instead for 
Did you mean: 

Buttons to be used inside Alfresco Activiti Task Forms

akashdhruvc
Champ in-the-making
Champ in-the-making
While creating Alfresco Activiti (v1.3) Forms using the Form Modeller, I can see that buttons can ONLY be added using Form Outcome and the ONLY buttons used in a form BY DEFAULT are the "Compete" and "Save" buttons.

I wish to create buttons within the Task Form page which would change the display and content of the form based on the click of the button.

Say a button like English/French/Spanish - On clicking the button, the content language is changed accordingly while displaying but the task isn't completed or anything.

(Please Note: This is a graphical requirement & clicking the button has nothing to do with task completion)
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
That would need to be done using a 'form stencil': create a new widget that would do that behaviour. But changing the whole form is not simple to do and probably will require a fair amount of javascript.

sunitanayak83
Champ in-the-making
Champ in-the-making
Is it possible to add a button, which performs a search(e.g postcode finder) ?? My form has an element where the user can enter his/her postcode and hits the search button. Is it possible for me to add button for this scenario ? Any reference documentation would be helpful.

vasile_dirla
Star Contributor
Star Contributor
Hi,
yes it's possible to do it by using a custom form stencil; you'll define a html part of your widget and then you will provide also a controller for it. (javascript code which will do the "magic")

In your installation there should be a docs folder or docs.zip. In there, look for the section on 'Custom form fields'.