mardi 21 février 2017

Hide() an element with the value of a Checkbox: Processmaker

I have a dynaform like this

User A:

|-------------------|   |-------------------|   |--------|
      Name                    Destination        Checkbox
|-------------------|   |-------------------|   |--------|

User B:

|-------------------|   |-------------------|   |--------|
      Name                    Destination        Checkbox
|-------------------|   |-------------------|   |--------|

Now I have another dynafor which will show like this based on checkbox. If I click on the Checkbox for A then only the value of A will show on another Dynaform. I want to hide the other elements based on the check box.

User A:

|-------------------|   |-------------------|
      Name                    Destination    
|-------------------|   |-------------------|

I used this code in second dynaform, but don't working..

$( document ).ready(function() {
  $("#CheckJanuary").setOnchange(newVal, oldVal) {

   if (newVal == '"1"' || newVal == '["1"]') {
      $("#labelCCO2").hide();
   }
   else {
      $("#labelCCO2").show();
   }
} );
});




Aucun commentaire:

Enregistrer un commentaire