(Update - Apparently, you need the field you are referencing in the same table area or cell as the Javascript, it worked once I moved that)
I have a form on which I need to create fields on the fly, so I’m using JS to create HTML input fields. It works, except for when I try to place it in a table, which is where I need it. I tried to put the code in the header and calling it as a function as well, but no dice.
Here’s the code. It reads in a field that has several values separated by commas, and splits them into an array. It then creates a field for each value and prints the value after the field, serving as a label. It seems to blow right on the first linem where it tried to access the field. An Alert() runs ok in the same table, so it’s something to do with the form. Does a table create a new form and make the old one inaccessible somehow?
Thanks for any advice!
Steve