Convert any typed character to its uppercase version?

Top WooCommerce & WordPress Plugins Forums Product Input Fields for WooCommerce Convert any typed character to its uppercase version?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #99322
    bydomino
    Participant

    I 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?

    #99323

    Hi,
    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 😉

    #99324
    bydomino
    Participant

    WHERE 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.

    #99325
    Pablo Pacheco
    Guest

    Hi 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.

    #99326
    bydomino
    Participant

    Its ok i was able to us WP all import to update the affected product with the uppercase function.

    THanks!

    #99327
    Pablo Pacheco
    Guest

    You’re welcome 🙂
    Glad to hear it!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.