Top WooCommerce & WordPress Plugins › Forums › Product Input Fields for WooCommerce › Convert any typed character to its uppercase version?
- Support forum for the Product Input Fields for WooCommerce.
- This topic has 5 replies, 3 voices, and was last updated 5 years, 4 months ago by
Pablo Pacheco.
- AuthorPosts
-
March 9, 2018 at 6:47 pm #99322
bydomino
ParticipantI would like to add some JavaScript to a specific text field to convert any typed character to its uppercase version when entered.
where can i do this? OR is this possible?April 28, 2018 at 7:18 pm #99323Pablo Pacheco
MemberHi,
Sorry for the delay.After reading your message, I just included a new option called “Uppercase” on version 1.1.3.
If you have any questions, please let me know 😉May 8, 2018 at 6:18 pm #99324bydomino
ParticipantWHERE would I set this option as the client has already set validation in 100’s of products already now.
AND JUST FYI when i set the validation pattern for a text field
[A-Z]+
it works fine in chrome, and firefox, and IE BUT
in Safari it is allowing the user to bypass validation and add the item to the cart. this also means it isnt working on Apple products IE iPad and iPhones.May 8, 2018 at 10:09 pm #99325Pablo Pacheco
GuestHi Ray,
The Uppercase feature is located on Input field General option section.
There is a bulk option on the plugin where you can set default inputs that will be displayed on all products. It’s located on plugin’s settings > All products.
If you didn’t use it we can try to change it programmatically using the
alg_wc_pif_field_html
filter. I can help you with that, just let me know.Regarding Safari, unfortunately it doesn’t support the pattern attribute so well, but theoretically, since version 11 it should be working.
May 9, 2018 at 9:41 pm #99326bydomino
ParticipantIts ok i was able to us WP all import to update the affected product with the uppercase function.
THanks!
May 9, 2018 at 9:48 pm #99327Pablo Pacheco
GuestYou’re welcome 🙂
Glad to hear it! - AuthorPosts
- You must be logged in to reply to this topic.