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

    Auto-complete widget - can we validate against the list of suggestions?

    Asked by Karl Equi  on October 09, 2015 at 10:04 AM

    IE: Can we make sure the user is ONLY able to submit an answer which is in the autocomplete list?

     

    Currently they seem able to ignore the list and submit a different answer.

     

    I have 300 options - of which I want the user to pick one.

    It's too long for a dropdown list really - but right for autocomplete.

    validate auto complete widget required validation
  • Profile Image

    Answered by grade4pagasa on October 09, 2015 at 11:40 AM

    hi Karl.  Randy here, a fellow JotForm user.

    the workaround i came up with requires a condition that will check if the auto-complete text field's entry is included in the list of names that was hard-coded (comma-separated-values) which will then trigger to either show or hide the submit button (warning message is optional). (fig. 1). you can see the end result of the sample form below. (fig. 2). this is just an idea :)

    btw, the regular drop down button will also work (you can use keyboard strokes to find names) which has the same result when fuzzy search is off (which only checks the first letter of the first-names).

    hope this helps while waiting for the JotForm Support team's reply. 

     

    (fig. 1)

     

    (fig. 2)

     

  • Profile Image

    Answered by Karl Equi  on October 09, 2015 at 12:09 PM

    Top work-around Randy - Thanks

     

    Karl