I’ve set up a form with various choice fields and have put in buttons that allow the user to untick their selection, leaving the field blank (following advice on other posts, thank you). This all works very well.
The form is a long one and users are able to save and return to it later, before pressing submit and it flowing through an approver workflow.
We’ve found that if the user changes their mind and unticks immediately, there is no problem. However, if the user saves, and then returns to the form later and wants to untick, the button has stopped working. Just to be clear, after saving, other areas on the form can still be edited – it is just the untick button that has stopped working.
The code in the button is as follows, where Option = name of the choice field and varOption = a JS variable name given to that field:
NWF$('document').ready(function(){var strOption = NWF$('#'+varOption).find("input:checked").val();NWF$('#'+varOption).find('input[value=''+strOption+'']').attr('checked', false);});






