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

Moderator: amosbatto

Forum rules: Please search to see if a question has already been asked before posting. Please don't ask the same question in multiple forums.
Hi PM Experts,

I don't know if this inquiry has already been raised but I have a situation that I need to show/hide a column grid based on the selected item on the master form. If type of request is [Rent] the column grid [Price per Year] must show. I'm able to do show/hide column grid if the field is part of the grid but when it is dependent on master form I have difficulty implementing it.

Thanks, in advance. :)
Evaluation.jpg (60.98 KiB) Viewed 441 times
Last edited by as13969 on Wed Feb 21, 2018 8:11 am, edited 1 time in total.
First of all, have you read this? ... rid_column

The JavaScript code would be something like this:
Code: Select all
function showOrHideColumn(gridName, fieldName, request) {
   var colNo = getGridField(gridName, 1, fieldName).parentNode.cellIndex;
   rows = document.getElementById(gridName).rows;
   for (i=0; i < rows.length; i ++) {
      if (request == 'Rent') {
         rows[i].cells[colNo].style.display = "";
      } else {
         rows[i].cells[colNo].style.display= "none";

//call when DynaForm loads:
showOrHideColumn('productsGrid', 'pricePerYear', getField('typeOfRequest').value); 

getField('typeOfRequest').onchange = function() {
   showOrHideColumn('productsGrid', 'pricePerYear', getField('typeOfRequest').value);
Where the name of the grid is "productsGrid", the name of the grid field is "pricePerYear" and the name of the dropdown field is "typeOfRequest" and one of the values in its list of options is "Rent".

You can use sqlsrv extension in php7 and process[…]

Calculate hours of day/week

You need to read ProcesMaker's JavaScript documen[…]

timing control

I can't reproduce the problem in version 3.2.0 Com[…]

Why do you need all 30000 database records in your[…]