How to make bigger value show from two dropdown fields?

  • victorfpaula
    Asked on November 27, 2017 at 9:29 PM

    Estou criando um formulário para pedidos de pizza.

    Preciso que o quando o usuário escolha dois sabores diferentes em uma pizza,
    apenas o valor do menu suspenso mais alto, seja mostrado.


    EX:

    Menu Suspenso 1 (Pizza  - $35.00)
    Menu Suspenso 2 (Pizza - $44.00


    Resultado mostrando apenas o valor da mais alta = $44.00


    meu formulário é este - https://form.jotformz.com/73225693484666

  • Nik_C
    Replied on November 28, 2017 at 3:04 AM

    This is how you can do that.

    Insert three number fields in your form:

    1511855179Screen Shot 2017 11 28 at 8 Screenshot 10


    One for first drop-down field value, one for the second drop-down value and one for the bigger value.

    1511855578Screen Shot 2017 11 28 at 8 Screenshot 21

    And these conditions will copy values from dropdowns to Number fields:

    1511855715Screen Shot 2017 11 28 at 8 Screenshot 32

    1511855723Screen Shot 2017 11 28 at 8 Screenshot 43

    Then we check which is greater and copy to Greater number field:

    1511855803Screen Shot 2017 11 28 at 9 Screenshot 54

    Finally, you pass the Greater number field to your Total field:

    1511855894Screen Shot 2017 11 28 at 9 Screenshot 65

    All number fields you can make hidden since they are not necessary for the end user. And here is how it works:

    1511856052Screen Shot 2017 11 28 at 9 Screenshot 76

    You can check my test form as well: https://form.jotform.com/73311879951970

    Than you!