The following method loads the document into a temporary ServerTextControl to loop through all ApplicationFields. When FormCheckBoxes are found, a Checked or Unchecked Unicode character is set based on the checked status of the field.
In the code-behind, the AJAX call is processed and based on the argument, the clicked checkbox field is toggled.
Try the complete sample by cloning the repository from GitHub. Happy coding!