CAP form generation