Calculation widget detects the empty space in the dropdown field as a valid option

  • john.roscoe
    Asked on March 30, 2014 at 1:19 AM

    For radio buttons and check boxes the calculation values can be entered in the same sequence as the Options list, however for Drop down boxes, the firsl line is always a blank line. If you enter the calculation values to match the Options list the result will always be offset by one line. So you have correct this by making the first value '0'. You cant just leave a blank line because it will be deleted when you save the settings.

    Here is a screenshot to demonstrate, using the identical values for both a dropdown box and a check box. Note the value in the dropdown for the 21" monitor is actually showing the value for the keyboard because I didnt insert a 0 for the first value. The checkbox version is correct.

    Calculation widget detects the empty space in the dropdown field as a valid option Image 1 Screenshot 30

    Here is a screenshot showing the value 0 entered to offset the blank line in the dropdown box.

    Calculation widget detects the empty space in the dropdown field as a valid option Image 2 Screenshot 41

    I suggest this feature is modified to enter an offset automatically, to prevent possible errors when inputting Calculation Values to match the Options values.

  • Welvin Support Team Lead
    Replied on March 30, 2014 at 6:30 AM

    Hi John,

    Thanks for posting this on a new thread. Let me forward this thread to our developers so they can further check. 

    For now, please use the method with adding zero as the first value. Seems like the empty space of the dropdown field is treaded as a valid option by the calculation function.

    Thanks

  • jamesforpm
    Replied on September 8, 2014 at 12:13 PM

    Any update on this?

  • David JotForm Support
    Replied on September 8, 2014 at 12:48 PM

    Hi,

    The blank option is indeed a valid option and needs to be treated as such.  Adding a value of 0 or whatever you would like to have as your default, is the proper solution for this.  If you have any further questions, please create a new thread and we will be happy to help.