How do you do checks for checkboxes?

  • Profile Image
    paulninja
    Asked on September 18, 2017 at 03:11 AM

    Checkboxes may have multiple combinations.

     

    Why is your conditionals only having EQUAL or NOT EQUAL and nothing for something like in_array?

     

    e.g.

    field: choices [a, b, c, d]

    field: a_qty

    field: b_qty

    field: c_qty

    field: d_qty

     

    I want a_qty to be visible only when a is selected in field: choices

    I want a_qty to have value 0 when it's not selected

     

    It's lame that using Show/Hide a_qty is visible when you do: choices = a

     

    But then when I do https://www.screencast.com/t/cEHkvWqB

    suddenly, the not equal operator is checking not if the item is chosen but account for the other options being chosen or not

  • Profile Image
    paulninja
    Answered on September 18, 2017 at 03:15 AM

    Can I do calculation when a field get's hidden?

  • Profile Image
    Chriistian
    Answered on September 18, 2017 at 04:57 AM

    I checked your form (https://www.jotform.com/72593234693464) and it seems you have set the default value of the fields into 0.

    Can I do the calculation when a field get's hidden?

    Yes, you can still do calculation even the field is being hidden. Just make sure that you have set the Clear Hidden Field Values to Don't clear so that the values will not be clear if it hidden.

    Related Guide: Smart Forms Using Conditional Logic.

    If you have more questions, please let us know.

  • Profile Image
    paulninja
    Answered on September 18, 2017 at 06:02 AM

    Thanks for showing that option