You code to do this on the change event of your checkboxes.
NWF$(document).ready(function(){
NWF$('#'+Check1).change(
function() {
NWF$("#" + textBox1).val('0');
}
);
});
Thank you for the reply! I am new to nintex [obviously] and am not sure where to put the provided code. I do not see any option for adding JS under the field --> settings area. Could you please point me in the right direction?
Thank you,
Jennifer
Thanks for the reply; it just doesn't seem to want to work, I'm not sure what I'm doing wrong. I set a variable on the checkbox valCheckbox] and have the code referencing it in the form:
When you uncheck the box the value of the field should reset to "0".
Thanks for the help,
Jennifer
That worked! Thank you! One more question for you; it clears the field no matter what checkbox is checked. I want it to clear box1 only when the first checkbox is checked, box2 when the second box is checked. Can I do something like this:
NWF$(document).ready(function(){
var checkedValue = NWF$('#' + valCheckbox).val();
if (checkedValue) = 1
{
NWF$('#' + valCheckbox).change(function() {
NWF$('#' + js1txt).val('0'); }
elseif (checkedValue) = 2
{
NWF$('#' + valCheckbox).change(function() {
NWF$('#' + js2txt).val('0'); }
}
);
});
Thanks again,
Jennifer