We are dynamically changing our checkbox labels in JavaScript, however those changes are not saving to the repository. The dynamic labels are pulled from a LookUp and saved to a Multi-Line field in a prior step in the process. Then I pull those into an array and use that to change the checkbox labels.
Does anyone know how to get the new labels to show up on the copy saved to the repository?
The code that changes the values
var myArray = $('.hiddenCheckboxLabels textarea').val().split('|'); var arrayLength; arrayLength = myArray.length; var checkboxIndex = 0; $('.departmentCheckboxes .choice label').each(function() { $(this).text(myArray[checkboxIndex]); checkboxIndex++; })
What the form looks like before submitting
What gets saved in the repository