Form generator

Refs #243 and refs #269