I had my previous question on how to disable the checkbox in the user task form stage.
I got it to work by the below jscript.
$('#Field42-0').attr('disabled', true);
$('#Field42-1').attr('disabled', true);
$('#Field42-2').attr('disabled', true);
So when the form is initially submitted the initial user selects the check box choices and this gets assigned to a user task for approval and the checkboxes are disabled which is good. (so no modification is made to the initial selection)
But after the form is acknowledged when the form is getting filed in the repository the checkboxes do not show any selections so the values are not captured after the acknowledgement button is clicked.
How can i reenable the checkbox (that were checked ) after the user clicks the approve/acknowledge?
Below is the javascript i have so far.
$(function()
{
var StepID = $('input[name="stepid"]').val();
if (StepID != 1)
{
$('#Field42-0').attr('disabled', true);
$('#Field42-1').attr('disabled', true);
$('#Field42-2').attr('disabled', true);
}
});