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

  • All4Ed
    Asked on November 13, 2014 at 5:10 PM

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

  • raul
    Replied on November 13, 2014 at 5: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.

    Can I force user to always select an option from the autocomplete widget? Image 1 Screenshot 20

    Let us know if you have further questions.
    Thanks.

  • All4Ed
    Replied on November 14, 2014 at 8:25 AM

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

  • raul
    Replied 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.

  • webnetsupport
    Replied 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

  • BJoanna
    Replied on April 13, 2015 at 5:50 AM

    Your question has been moved to separate thread: 

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