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

    How can I access pre-store information or file?

    Asked by eastcoastec on March 01, 2016 at 11:38 PM

    I would like to create an entry to take the input. Based on the input, I would like to display the results taking the input as key. For example, I have pre-defined information, key-value pairs, like this: 

     

    123ABC: 24;

    456BCD: 35;

    232DBD: 32;

     

    And the form take the input from the entry, for example, 123ABC, the page would display 24. If the entry is 456BCD, the page can display 35. If the input is not recognized, display "Not found!"

     

    How can I achieve that?  

    Page URL:
    https://form.jotform.com/60608795517162

    key value for input set value display pre-defined information
  • Profile Image
    JotForm Support

    Answered by EltonCris on March 02, 2016 at 06:29 AM

    You can achieve that by defining all the pairs in the calculation condition.

    Here's how:

    1. While on the form builder, click Conditions and select Update/Calculate Field

    2. Then create the following condition.

    3. If you want to add a different value, you can repeat the same condition and then define the new pair of value.

    Hope this helps!

     

  • Profile Image

    Answered by eastcoastec on March 02, 2016 at 10:55 AM

    Thanks so much for your information. But if I have thousands, or hundreds such pairs, does it mean that I have to add thousands or hundreds such logic conditions? Could I save the information someway so that it can read directly? 

  • Profile Image
    JotForm Support

    Answered by Nik_C on March 02, 2016 at 01:35 PM

    Hi,

    Unfortunately, you will have to create conditions for every pair as my colleague already suggested.

    if you have some number pairs that are repeating you could create a range of conditions that could cover specific range of pairs.

     

    Please let me know if i can be of some assistance to you.

    Best regards.