What is the best way to use conditions?

  • joline0
    Asked on December 7, 2016 at 9:28 PM

    I want to create a form where you some field are automatically selected when one answer is picked. For example, when I click on color red, size of 1 ft and shape of round will be selected. Please show me the best way to do this. Thank you.

  • irfanmoosani
    Replied on December 8, 2016 at 1:22 AM

    I created a sample form for you using different types of fields, so its easy for you to understand

    https://form.jotform.me/63421262600443https://form.jotform.me/63421262600443Sample Form Layouthttps://form.jotform.me/63421262600443

    To apply the condition you need to design the condition in following manner

    I created 2 separate conditions for color field, if color Red is selected

    What is the best way to use conditions? Image 1 Screenshot 40

    Change the value of Shape field

    What is the best way to use conditions? Image 2 Screenshot 51

    Change the value of Size Field

    What is the best way to use conditions? Image 3 Screenshot 62

  • seth
    Replied on December 8, 2016 at 3:25 AM

    Hello,

    @irfanmoosani is right. This is the way that you can set up your conditions for the example you specified. You can also define your drop-down field's calculation values such as it it pushes its value to another field. For instance for the color options you can define feet values:

    What is the best way to use conditions? Image 1 Screenshot 60

    on the Surveying setting which will handle the calculation values for the selected color:

    What is the best way to use conditions? Image 2 Screenshot 71

    You can do this with one condition:

    What is the best way to use conditions? Image 3 Screenshot 82

    The form will work like this:

    What is the best way to use conditions? Image 4 Screenshot 93

    You can hide the inserted field on your form and use for your other needs:

    What is the best way to use conditions? Image 5 Screenshot 104

    Here is the form that I created :

    https://form.jotform.com/63421357149961

    You can clone this form. Here is a guide about it:

    https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL

    Please also clone and investigate the form that @irfanmoosani shared.

    I hope this answer helps. Please don't hesitate to contact us for your further queries.

    All the best!

  • joline0
    Replied on December 8, 2016 at 7:30 PM

    Is there an "else" anywhere? If this action is done, this answer will appear, else the other answer. I want only to limit one answer that is only associated to another answer so they are linked.

  • BJoanna
    Replied on December 8, 2016 at 11:12 PM

    There is't "else". However you can set your condition that "else" will be resolved if some condition is not met. For example, if you set condition to show some field based on selected option, you do not need to set opposite condition to hide same field if other option is selected.

    Here is my demo form: https://form.jotform.com/63428909000957 

    I have set only one condition to show email field if selected option in radio button field is equal to Yes.

    What is the best way to use conditions? Image 1 Screenshot 20

    If No is selected email field will remain hidden and there is no need to set condition for that option as well.

    Feel free to contact us if you have any other questions.