I have been trying this script on a new page I'm making. It works great (Thanks!) except for one thing.
One of the form fields can't be selected.
So I made a page that has a monster form with 34 fields. When I tried it out in preview, and live, two of the fields would not work properly. All of the boxes are sent as far back as possible, and the form itself is sent as far forward as possible.
After deleting the two boxes, copying a box that worked, and pasting it two times, one of the fields in the newly pasted boxes started working. I naturally tried the same thing a few more times for the one that still wasn't working. But after 5-6 times I gave up. I instead deleted the malfunctioning box and made a completely new one. I of course altered the script to reflect the new boxes names at all times. I sent the new box back as far as I can, but it still won't work.
I even tried having the box display another form field, but that didn't change anything. It was always the same box that didn't work.
However, the field is properly displaying. And it is actually possible to select it by tabbing. And when selected, you can type in it. So it seems to work in every way, except that you can't click the field to select it.
Is there any thing else that could be blocking the form field? Is there anything else that I might have to do to make it accessible?
I have tried with both radio buttons (which is what I would prefer) and just a plain text field. Exact same result with both.
Very grateful for any help!
EDIT: I finally realized what the issue was! It was the positioning of the boxes. I had placed the two boxes too close together, although they didn't overlap visually, the actual (but invisible) size of the form fields would cover each other. And even if one field was "in front" of the other, it made it impossible to select either one of them. Moving the fields further apart solved the problem for me.
Perhaps stupid of me to not realize it sooner, but using the visual editor sometimes makes you forget what is not seen Hope this might help anyone else out there with a similar issue!
Thanks again for the script, works really well!
Praying that this kind of flexibility becomes a built in feature soon