27.04.2017 - Here is a working example I created from your code. This uses a function getFormFields that I wrote for a similar question (first reference at the bottom of this .