How to make bigger value show from two dropdown fields?

  • Profile Image
    victorfpaula
    Asked on November 27, 2017 at 09: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

  • Profile Image
    Nik_C
    Answered on November 28, 2017 at 03:04 AM

    This is how you can do that.

    Insert three number fields in your form:

    1511855179Screen Shot 2017-11-28 at 8.50


    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.56

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

    1511855715Screen Shot 2017-11-28 at 8.59

    1511855723Screen Shot 2017-11-28 at 8.59

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

    1511855803Screen Shot 2017-11-28 at 9.01

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

    1511855894Screen Shot 2017-11-28 at 9.02

    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.05

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

    Than you!