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

    (@codepeople)

    Hi,

    The equation is just like your description:

    fieldname10*12*0.045

    The calculation button is used in case you don’t want evaluate the equations dynamically, in this case you should uncheck the option: “Eval dynamically the equations associated to the calculated fields”, from the “Form Settings” tab, and insert a button with the type “Calculate” in the form.

    By default the equation is evaluated when varies the value of the fieldname10 field, but following the steps above the equation is not evaluated until the user press the calculate button.

    Best regards.

    Thread Starter conceptualcreative

    (@codenew)

    0.045 is %??

    Plugin Author codepeople

    (@codepeople)

    Hi,

    Yes, the 4.5% is equivalent to 0.045

    Best regards.

    Thread Starter conceptualcreative

    (@codenew)

    I do not perform operations, just show me the minimum

    Attached image

    https://i57.tinypic.com/29x7qjp.jpg

    Plugin Author codepeople

    (@codepeople)

    Hi,

    The equation associated to the calculated field in your form is incorrect, I guess you want use a conditional statement, and to use one of three equations associated to the calculated field, depending of values entered in another field of form. Please, visit the following link:

    https://www.ads-software.com/plugins/calculated-fields-form/faq/

    Specifically the question:

    Q: How to use conditional statements in the equations?

    Best regards.

    Thread Starter conceptualcreative

    (@codenew)

    No, I do not do that, I want to do something simple, this operation

    fieldname10*12*0.045

    Where would have to wear?

    Plugin Author codepeople

    (@codepeople)

    Hi,

    In this case, remove the other lines from the equation because your current equation is:

    fieldname10*12*0.045
    fieldname14*12*0.07
    fieldname15*12*0.0185

    And the correct equation would be only the first line:

    fieldname10*12*0.045

    Best regards.

    Thread Starter conceptualcreative

    (@codenew)

    I’m already getting it.

    But I need to put those 3 formulas for 3 Radio Buttons.

    Since according to which you choose, you will have a different formula.

    I could display an image like the example?

    https://i57.tinypic.com/29x7qjp.jpg

    With the formulas I teach?

    * 12 * 0.045 fieldname10
    * 12 * 0.07 fieldname14
    fieldname15 * 12 * 0.0185

    No longer gives me the correct result

    Sorry for my English.

    Plugin Author codepeople

    (@codepeople)

    Hi,

    If you need to use one of three equations depending of choice selected in a radio buttons group, you SHOULD TO USE conditional statements. I will assume that the field “Marca el tipo de inmueble” is the fieldname1 (if it is another fieldname correct it in the equation), and the values associates to each option are:

    1 for the “Vivienda” choice.
    2 for the “Local Comercial” choice
    and 3 for “Básico Arrendador”

    If the equation fieldname10*12*0.045 is applied for “Vivienda”, fieldname14*12*0.07 is applied to the “Local Comercial”, and fieldname15*12*0.0185 is applied to “Básico Arrendador”, the complete equation would be:

    (function(){
    if(fieldname1 == 1) return fieldname10*12*0.045;
    if(fieldname1 == 2) return fieldname14*12*0.07;
    if(fieldname1 == 3) return fieldname15*12*0.0185;
    })()

    For additional support you should contact us through our support page:

    https://wordpress.dwbooster.com/support

    Best regards.

    Thread Starter conceptualcreative

    (@codenew)

    I did it, but I have a problem:

    In the image if you see I have placed a mínimum in each field:

    https://i57.tinypic.com/29x7qjp.jpg

    154,50
    500
    90

    And to give the result is not respectivo this… for example: if I put 100, in the field of 154,50 gives me another value, and the mínimum should be 154.50

    Another thing, when I put 154.50 the value that the calculator should to give me has to be 154.50 and it is giving me another value.

    How do I can do for someone to put him 154.50 achieves the same value as a minimum?

    I don’t understand how to put it into the calculator

    Thread Starter conceptualcreative

    (@codenew)

    Any help.?

    Plugin Author codepeople

    (@codepeople)

    Hi,

    Please post the question at the support system: https://wordpress.dwbooster.com/support

    Thank you!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘How to make operation’ is closed to new replies.