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

    Validate form field against a list

    Asked by AISF on March 28, 2015 at 10:59 AM

    How can I validate the entry of a field against a list? Is it possibile to do it through the online interface or do I need to write a code? If so, could you please provide me with an example?

    Thank you very much

  • Profile Image

    Answered by raul on March 28, 2015 at 12:45 PM

    Can you let us know where would that list be? There are several ways to do this, but it would depend on how is the list going to be accessed. For example, you can use JavaScript and the indexOf method if it's a short list (array). But, you would need to use the full source code of your form to use a custom script that would perform this validation.

    We also have the autocomplete widget that provides a similar functionality, you might want to take a look at it.

    If you can provide us with more details about how this validation should work, we can provide a more detailed answer about if and how this can be accomplished.

  • Profile Image

    Answered by ggsstarvending on September 27, 2015 at 07:48 AM

    i have same question Raul.


    My issue is i am not sure where i can or how i can place a list in.


    my form is based on the idea that our staff will place data only they know as true: "Locator ID, Locator Name and Locators Email" and i want the data to be recalled in the form fields as "correct or incorrect" according to a list of data pre logged in the behind the scenes. 

    I have a short list but the issue is they maybe temporarily used IE if we make a list of points to pull from if we later on need to change the data in the list lets say that locator A101 leaves and he is replaced could we change his data and add new locator to his locator ID?

  • Profile Image
    JotForm Support

    Answered by jonathan on September 27, 2015 at 07:00 PM

    @ ggsstarvending


    We will resolve your issue here http://www.jotform.com/answers/671335