AnsweredAssumed Answered

How to do javascript calculation in the form field

Question asked by sprincess on Mar 9, 2017
Latest reply on Mar 10, 2017 by gdharley

Hi, I'm new to Alfresco Activiti.

I've already desgin a flow on activiti-app with a simple form.

In the form, there are a textbox id named "cal", a dropdown field id named "quantity" and amount field named "amount".

 

What I want to do is use javascript to do auto calculation when value is changed on the form.

I found there is a javascript tab and there are lots events I could use.

 

In my case, "formFieldValueChanged" may be useful,

but I don't know how I can get the value from "cal", "quantity" and "amount"?

 

 

Could anyone help to give some sample code to let me know how to do this?

 

In addition, any reference url that I could know more detail on the params of "scope", "form", "field"?
I have read this guide actually Alfresco Activiti, but it seems not mentioned anymore.

 

Any feedbacks are appreciated and thanks!

 

BR,

Mandy

Outcomes