Skip to main content

Hi all,

I wanna uncheck a checkbox that is in my nintex Form. The Name of this checkbox is VerpflichtungserklärungDE.

In my Button in the Client Click I have this Javascript

NWF$(document).ready(function(){$("#VerpflichtungserklärungDE").attr('checked',false);});

When I click on the Button the Checkbox will not be unchecked. What is wrong in this Javascript?

Best Regards and Thanks

Hello,

Where you are referencing your id, instead of ("#VerpflichtungserklärungDE") 

try  ('#' + VerpflichtungserklärungDE)

Thanks,

Mike


Hi Domenico,

Hope you're doing well :-)

You may add another NWF before JQuery selector? I would try something like this:

NWF$(document).ready(function(){

     NWF$("#" + VerpflichtungserklärungDE).val(0);

});

The checkbox must been declared as a Javascript variable in the control settings:

Screen Shot 06-12-15 at 09.09 AM.PNG


Hi Roman,

I tried another approach, in the Save Action (Click Event) I uncheck everytime the checkbox if its checked.

NWF$(document).ready(function(){$('#' + VerpflichtungserklärungDE).attr('checked',false);});

and it works 🙂


Looks like my solution of referencing your ID correctly worked - glad to hear it.  Can you mark my answer as correct?

Thanks!


Reply