cancel
Showing results for 
Search instead for 
Did you mean: 
dgullo
Nintex Newbie

uncheck Checkbox after Button Client Click in Nintex Form

Jump to solution

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

Reply
4 Replies
Automation Master
Automation Master

Re: uncheck Checkbox after Button Client Click in Nintex Form

Jump to solution

Hello,

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

try  ('#' + VerpflichtungserklärungDE)

Thanks,

Mike

Reply
rm
Nintex Newbie

Re: uncheck Checkbox after Button Client Click in Nintex Form

Jump to solution

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

Reply
dgullo
Nintex Newbie

Re: uncheck Checkbox after Button Client Click in Nintex Form

Jump to solution

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 :-)

Reply
Automation Master
Automation Master

Re: uncheck Checkbox after Button Client Click in Nintex Form

Jump to solution

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

Thanks!

0 Kudos
Reply