Can I force user to always select an option from the autocomplete widget?

  • Profile Image
    All4Ed
    Asked on November 13, 2014 at 05:10 PM

    I am using the autocomplete widget. Can I validate or force the user to only enter an item from the autocomplete list?

  • Profile Image
    raul
    Answered on November 13, 2014 at 05:32 PM

    The autocomplete widget is intended to provide your users with suggestions to avoid them for typing the complete word. If you want to force them to select a predefined option then I think your best approach would be to use a dropdown.

    Let us know if you have further questions.
    Thanks.

  • Profile Image
    All4Ed
    Answered on November 14, 2014 at 08:25 AM

    The user needs to select from one of 14,000 items. A dropdown becomes unmanageable. Any other suggestion?

  • Profile Image
    raul
    Answered on November 14, 2014 at 10:46 AM

    Can these items be filtered by categories?
    For example, if the items were city names you could filter them by Country, then Village, etc.

    I'm thinking that it would be a heavy work for a form to load 14,000 items, so if it were possible to split these items into categories it could be a manageable task for the dropdown.

    If you don't want to use a dropdown at all and still want to load all items, then another solution that I can think of is using the full source code of your form and use the JQuery autocomplete plugin with an event listener that would force the user to select an item from the list as described here: http://stackoverflow.com/questions/11681292/jquery-autocomplete-how-to-force-selection-from-list-keyboard

    Best Regards.

  • Profile Image
    webnetsupport
    Answered on April 12, 2015 at 10:48 PM

    Hi,

     

    Any update or easy method to force user to select from auto complete options?

     

    Thank you

  • Profile Image
    BJoanna
    Answered on April 13, 2015 at 05:50 AM

    Your question has been moved to separate thread: 

    http://www.jotform.com/answers/551141 and we will answer on your question there.