Is It Possible to Programmatically Add in Checkboxes to an Input Form

For anyone who wants to know the answer to the above.
Its here.