• Resolved altcreative

    (@altcreative)


    Hello there!

    I have a formula: (A x B x C) -z -e -f = G

    Where “A” is the number that is selected by the slider. “B” – the number is selected from the list. “C” – the number is selected either by the slider or from the list. “e” and “f” are constants that are added to the formula if both checkboxes are pressed.

    In the plugin, I did not find such an element as a slider. But I know that the plugin is good and suitable for most operations.

    Tell me, how can I implement such a formula? What is the best way to do this? If there is no slider element, then what can it be replaced with?

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @altcreative

    The plugin includes a slider control, but the appearance of slider is applied when the form is running.

    You simply should insert the slider and dropdown fields (in the case of the dropdown fields enter only numbers as the choices’ values, the choices’ texts can be numbers or texts, as you prefer because they are not used in the equations). The names of fields are assigned dynamically by the plugin and they have the structure: fieldname#.

    So, assuming the fields corresponding to A, B and C are: fieldname1, fieldname2 and fieldname3 respectively, and the constants z, e and f are: 12, 34 and 56 respectively (the fields’ names and constants are hypothetical, only to describe the process), you simply should insert a calculated field in the form with the following equation associated:

    
    fieldname1*fieldname2*fieldname3-12-34-56
    

    and that’s all.
    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Can I make a calculator with a slider?’ is closed to new replies.