Validate form field against a list

  • Profile Image
    AISF
    Asked 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
    raul
    Answered 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
    jonathan
    Answered on September 27, 2015 at 07:00 PM

    @ ggsstarvending

    Hi,

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

    Thanks.