autosuggest for mobile page

autosuggest for mobile page

isport59isport59 Posts: 30Questions: 9Answers: 2
edited April 2015 in General

The following attributes work but it don't get suggested dictionary words on a mobile webpage with Editor:

         {

    label: "Ad Title:",

    name: "CarAds.AdTitle",

    attr:  {

        autocomplete: "on",

        autocorrect: "on",

        autocapitalize: "on",

        spellcheck: true

    }               
    },

Can someone please advise

http://192.81.170.116/carsection.html

Thanks
Mike

Answers

  • isport59isport59 Posts: 30Questions: 9Answers: 2

    here is my page. Please test via mobile cell phone

    http://192.81.170.116/carsection.html

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    Hi,

    The autocomplete attribute of the input element indicates ([from MDN)[https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input]):

    on: The browser can automatically complete the value based on values that the user has entered during previous uses.

    What might be happening is that the mobile browser hasn't fully implemented that, or possibly they have intentionally decided not to implement it (due to UI considerations for example - how would you show the list of previous inputs).

    I'm afraid that there is little I can do about this in Editor as it looks like a browser issue.

    Allan

  • isport59isport59 Posts: 30Questions: 9Answers: 2

    The following input field attributes work fine on my cell when I use it normally:

    <input autocomplete="on" autocorrect="on" autocapitalize="on" spellcheck="true" type="text" name="USER" value="" maxlength="50" />

    Here is a small input field example that works fine on my mobile:
    http://vta.li

    Would it be possible for me to add these attributes manually in your script? If yes, where can it be done.

    Please Advise
    Thanks!

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    Very odd - those attributes will be added. I'm wondering if since they are being added using Javascript they aren't working.

    I've just used the iOS simulator from Xcode and attached Safari to it - it shows:

    <input id="DTE_Field_CarAds-AdTitle" type="text" autocomplete="on" autocorrect="on" autocapitalize="on" spellcheck="true">

    for the element, so the attribute is there, but doesn't appear to be acted upon which is a bit odd.

    Allan

This discussion has been closed.