We have a form that we are using the following JavaScript to make a checkbox field readonly:
$('.read-only input:checkbox').attr('disabled', true);
There is a field at the beginning of the form that is populated and then performs a lookup using the Lookup Rules. Then there is JavaScript that based on if one of the lookup fields is populated with the value 'Yes', it checks or unchecks a value in the read only field mentioned above.
$("Field127")/cjamge(function(DoWork){ if(DoWork.currentTarget.value=="Yes") { document.getElementById("Field85-0").checked=true; }...
All of that works. But, when the form is saved as a draft and then re-opened, the checkbox value is gone.
Any ideas how to get the checkbox field to keep it's value?