Make calculations and update in real time fields
Confluence User - 21 Aug, 2017
Hi Friends,
I have a calculation field named "BONUS" that sum values from a grid form.
Also I take the value from a field named "total_prod" from a sub-form and need make other calculation like "total_prod" - "BONUS" every time that i increase "BONUS". and store this value to Field in the form.
I´m using javascript to get values , but need help to do the calculation and to copy the field in the "Porpagar" field, that is the same as Calculo in the figure bellow.
<script type = "text/javascript" >
var field2 = FormUtil.getField("total_prop");
var b =field2.val();
//Almacenar en Formulario
// FormUtil.getField(Porpagar).val(field2);
$('[name='+Porpagar+']:enabled').val(field2);
//});
</script>
javascript;field;textfield
