What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

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

    Asked by All4Ed 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?

    select validate autocomplete widget force
  • Profile Image

    Answered by raul 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

    Answered by All4Ed 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

    Answered by raul 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

    Answered by webnetsupport 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
    JotForm Support

    Answered by BJoanna 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.