use render method to distinguish between form rendering and pdf delivery, refs #6962