• Resolved steelrods

    (@steelrods)


    Hi,

    I just want to input a simple calculator, for example
    140% (default text) X field number (input value) X field number (input value) X 0,025 (default text) = total.
    What is the formula that I can use.
    Thank you in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @steelrods,

    If the first field is a “Single Line Text” control, you should convert it in a number. So, assuming the fields are: fieldname1 (the textual field), fieldname2 and fieldname3 (the number fields) the equation would be:

    parseFloat(fieldname1)*fieldname2*fieldname2/100

    Note, javascript is a case sensitive language.

    An alternative would be emulate the percentage field with a currency field, entering the percentage symbol as the currency, in whose case the equation would be simply:

    fieldname1*fieldname2*fieldname2/100

    and that’s all.
    Best regards.

    Thread Starter steelrods

    (@steelrods)

    Thank you for your support, it’s work perfectly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Simple kalkulator’ is closed to new replies.