Anyone know how to force uppercase in text fields (product options)? I got it to force int he display on the product page by modifying the styles.css, but it still passes lower case to the cart. I need it to be uppercase all the way thru
Anyone know how to force uppercase in text fields (product options)? I got it to force int he display on the product page by modifying the styles.css, but it still passes lower case to the cart. I need it to be uppercase all the way thru
If using CSS, that will just change how it appears. It will not impact the data submitted. If you want to actually make it uppercase so that it carries through later, you would have to use javascript to convert it at some point.
<div style="float:left;">
--
<a href="https://plus.google.com/+ScottWilliamsC7/" rel="me">Scott Williams</a>
Technical Marketing Manager
<b>Convergent7</b>
</div>
dammit, i suck at javascript. i'll post here for everyone once i muddle my way through it
Add to any article on the onepagecheckout page.
Code:<script type="text/javascript"> jQuery(function(){ jQuery('input#btnSubmitOrder').click(function(){ jQuery('input[name^="Orders.Custom_Field"]').each(function(){ this.value = this.value.toUpperCase(); }); return true; }); }); </script>
Bookmarks