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 to create random value field based on the input of another field?

    Asked by elio69 on January 20, 2017 at 05:27 AM

    Bonjour Jotform,


    Je voulais savoir si c'était possible de faire la chose suivante :


    Avoir une case où la personne peut mettre un nombre, et que cela donne un résultat chiffré (automatiquement)


    Par exemple :




    Question :

    Combien avez-vous de m² ?


    1 < x < 2000

    --> = 100€


    2001 < x < 4000

    --> = 200€


    x étant le nombre de m² de la personne.


    Merci !


  • Profile Image
    JotForm Support

    Answered by Nik_C on January 20, 2017 at 06:33 AM

    There is a  workaround that could achieve this. 

    You can use a Random Value Generator Widget that will place its value inside of the another field when something is typed in the first field. 

    For example, if we have two fields in the form and we set the condition that says: If field1 is filled copy random value to field2.

    Here is how to do that:

    1. Put Random value generator to the form:

    2. Make condition that will copy the value from random field to the second field.

    Random value generator can be hidden of course.

    Please check my test form where I achieved that: https://form.jotform.com/70186744497973

    If you have any further questions please let us know.

    Thank you!

  • Profile Image

    Answered by elio69 on January 20, 2017 at 09:02 AM



    Merci pour votre réponse, mais je ne pense pas avoir compris.

    Pourriez-vous me faire un exemple concret ?

    J'ai téléchargé le widget "Random Value Generator"

    Je m'excuse d'avance !




  • Profile Image
    JotForm Support

    Answered by BDAVID on January 20, 2017 at 11:47 AM

    Based on the example of your first reply:

    "Combien avez-vous de m² ?

    1 < x < 2000

    --> = 100€


    2001 < x < 4000

    --> = 200€"

    It looks like you want to create a calculation, here is my example:

    1) Add to Form Calculation widgets on your form, and create the following condition: https://www.jotform.com/help/268-Conditional-Logic-Inserts-Text-Calculation-Into-A-Field 


    Result https://form.jotform.com/70194678839978 

    Let us know if you need more help.