Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By DiegoSandoval
#815776
Hi Team,

I have the grid's sum but I want to export this value out of the dynaform to the next gateway.
Is there any way to do this without add another field?.

Thanks in advance.
User avatar
By amosbatto
#815779
Create a hidden field with the ID and variable "gridSum". Then add this JavaScript to your Dynaform to copy the grid's sum to the "gridSum" field when the Dynaform is submitted:
Code: Select all
var formId = $("form").prop("id");
$("#"+formId).setOnSubmit( function() {
     var sum = $("#myGrid").getSummary("myGridField");
    $("#gridSum").setValue(sum);
}); 
Where "myGrid" is the ID of the grid and "myGridField" is the ID of the grid field which is summed.

Then you can use the variable @#gridSum (if a decimal number) or @%gridSum (if an integer) in your gateway's condition.

Being the best in the started business is the obje[…]

Winzo is a popular and unique game on the mobile p[…]

Cannot create process using templets

Real details. The problem was solved by effect!

However, it is essential to use it responsibly and[…]