Questions and discussion about using ProcessMaker: user interface, running cases & functionality

Moderator: amosbatto

User avatar
By amosbatto
You can use grid.removeRow().

If you want to remove blank rows when submitting the Dynaform, add this JavaScript code to your Dynaform:
Code: Select all
//set to the column number of the grid field to check if blank; counting starts counting from 0:
var colNoCheckIfBlank = 3; 
var formId = $("form").prop("id");

$("#"+formId).setOnSubmit( function() {
  var oGrid = $("#myGrid"); //change "myGrid" to the grid's ID
  var aGridVals = oGrid.getValue();
  var aRowsToDelete = [];

  for (i = aGridVals.length; i > 0; i--) {
     //subtract 1 because array counts from 0, not from 1
     if (aGridVals[i-1][colNoCheckIfBlank] == "") {
Location of Queue Jobs

I've been searching for where processmaker stores […]

You have to copy the library, put it into folder:[…]

hi, I have m_file variable (@@draft), and I have […]

Croatian translation

Hi gosmart, Nobody is currently working on a C[…]