cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Reset checkbox.

Good Day Team,

I am trying to evaluate some conditions in my approval Task "Approved/Rejected" If the task is rejected then I need select an extra reason " Terminate Workflow, Request Information, Escalate", however if the user has selected rejected and after that he decide change to Approved I need reset the choices or extra reasons whatever that was.
To reset the fields I have used the following code but it is not working, any suggestion will be great.  I am using nintex on premise 

NWF$(document).ready(function () {
NWF$("#" + varabc).change(function () {
if(!NWF$(this).prop('Rejected'))
NWF$("#" + varbcd).attr('checked', false);
});
});

Tags (1)
0 Kudos
Reply
1 Reply
Workflow Hero

Re: Reset checkbox.

Something along these lines should work:

NWF$(document).ready(function() {
  NWF$("#" + varabc).change(function() {
    if (NWF$("#" + varabc).find("input:checked").siblings("label").text() === "Approved") {
      NWF$("#" + varbcd).find("input:checked").prop("checked", false);
    }
  });
});

Does this solve the problem? 

0 Kudos
Accept as Solution Reply