This is mostly a JavaScript question, but it's caused because I am using array names in my INPUT fields for PHP's sake.
I am trying to change the value of a text field, from a separate window, by addressing the field in JavaScript. I know how to do this if the form field's name was say "Clipart", but my fields are named like "ARRAY[Clipart]". Normally you would address it like:
ParentWindow = window.opener;
ParentWindow.FormName.Clipart.value='$Data[Filename]';
BUT my problem is my field is an array name, and this does NOT work:
ParentWindow = window.opener;
ParentWindow.FormName.ARRAY[Clipart].value='$Data[Filename]';
The error is "Error: 'Clipart' is undefined". It doesn't work with single quote around Clipart or any way I've tried it (ARRAY.Clipart either).
Is there a different way to address this field?!
Thanks in advance!!!
Tom 🙂