Originally Posted by
jwlamb
This worked!! My only follow on question is how to add multiple attributes to do the same thing? Attribute # 108 and 112
Just duplicate the line with your selector for each item you want to add:
Code:
document.getElementById("attrib-110-0").addEventListener("keypress", attribUppercase, false);
document.getElementById("attrib-108-0").addEventListener("keypress", attribUppercase, false);
document.getElementById("attrib-112-0").addEventListener("keypress", attribUppercase, false);
Originally Posted by
jwlamb
Would it be easier to have a new Option Type (checkbox, radio, text, CAPITAL only text)? Then all attributes set to "CAPITAL only text" could quickly and easily be changed to uppercase only? Then there wouldn't be a need to adjust a js file as you go.
It probably would be easier, but it would require A LOT of modifications to core files so I won't go into that.
Originally Posted by
jwlamb
I should note, only partially worked. Mobile versions of the site still allow lower case.
Not sure because the js file should be loaded always. What template are you using? Do you have a separate mobile-only template? Can you provide a link to the site?
Bookmarks