Improve CS of code examples for form collection

This PR improves the coding style of the code examples in regard to form collections.