• Resolved tooze

    (@tooze)


    Hi,
    Is it possible to add the iOS autocapitalize=”words” attribute to a text field in CF7? I have a field called Full Name so there’s going to be more than 1 word in it. I want to use Apple’s feature that capitalizes each word when typed into the box.

    I used this for reference: https://googlechrome.github.io/samples/autocapitalize/

    Can I add custom attributes?

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tooze

    (@tooze)

    I added this to JS:
    jQuery(‘input.autocap’).attr(“autocapitalize”, “words”);

    which works but for some reason does the second letter of each word and the first letter of the first word. e.g:

    JOe bLoggs

    Thread Starter tooze

    (@tooze)

    Although not a full solution, I used a polyfill which fixes this ‘second letter’ bug for iOS: https://github.com/agrublev/autocapitalize

    It will do for now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘iOS Autocapitalise’ is closed to new replies.