I’ve run into similar issues with field mapping in the past. If you're looking for a quick way to test the form structure or just need a straightforward way to see how the fields behave before automating the whole thing, I sometimes use this simple tool- https://thetoolapp.com/pdf-tools/fill-pdf-form/. It’s pretty handy for verifying the PDF side of things while you're debugging your jsreport script.
E