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

Moderator: amosbatto

By vdelairewa
#824437
Hi All

Below I have the javascript coding for showing and hiding 2 Grids if I check any or both the checkgroup.
How Can I select only 1 check box to be selected at a time (not both)? I know it would be easier to do a dropdown but my coding doesn't seem to work.
Code: Select all
function showHideFields (newValue, oldValue) { 
    if (newValue.indexOf('SalRef') != -1) {
        $('#salerefundtemp').show();
    }
    if (newValue.indexOf('SalRef') == -1) {
        $('#salerefundtemp').hide();
    }
    if (newValue.indexOf('CCR') != -1) {
        $('#CCR').show();
   }
 
    if (newValue.indexOf('CCR') == -1) {
        $('#CCR').hide();
    }
 }

// HIDE FIELDS:
$("#salerefundtemp").hide();
$("#CCR").hide();

// END HIDE FIELDS

$("#chk_request").setOnchange(showHideFields); //when field changes
//when Dynaform loads:
showHideFields( $("#chk_request").getValue(), $("#chk_request").getValue() );
Attachments
Show and Hide Grid.JPG
Add description
Show and Hide Grid.JPG (51.21 KiB) Viewed 1054 times
Amosbatto, PMUsers.com is down.

I get the same error message when trying to access[…]

Grid Attachment + Email Attachment

Hi, Please check this post: https://forum.process[…]

ID de Archivo en Grilla

Hi, You can use multipleFile in your grid, then se[…]

Problema Zona horaria

Hi, Change the timezone config in the "/opt/p[…]