Source code for splitting a form