You are viewing limited content. For full access, please sign in.

Question

Question

Javascript to clear out checkbox upon load?

asked on June 19, 2020

Could someone provide me with javascript that would clear out a checkbox every time a new User Task is loaded?

0 0

Replies

replied on June 19, 2020

Add a css class to your checkbox field, for example: alwaysclear

and add this code to your javascript section:

$(document).ready(function() {
 $('.alwaysclear input[type="checkbox"]').prop('checked', false);
});

This will target that field's checkboxes and clear them everytime the form loads

2 0
You are not allowed to follow up in this post.

Sign in to reply to this post.