How to make operation
-
I need to do the following calculation:
fieldname10 x 12 x 4,5%= total
As it would have to be interpreted in the calculation button?
-
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.
0.045 is %??
Hi,
Yes, the 4.5% is equivalent to 0.045
Best regards.
I do not perform operations, just show me the minimum
Attached image
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://ww.wp.xz.cn/plugins/calculated-fields-form/faq/
Specifically the question:
Q: How to use conditional statements in the equations?
Best regards.
No, I do not do that, I want to do something simple, this operation
fieldname10*12*0.045
Where would have to wear?
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.0185And the correct equation would be only the first line:
fieldname10*12*0.045
Best regards.
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?
http://i57.tinypic.com/29x7qjp.jpg
With the formulas I teach?
* 12 * 0.045 fieldname10
* 12 * 0.07 fieldname14
fieldname15 * 12 * 0.0185No longer gives me the correct result
Sorry for my English.
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:
http://wordpress.dwbooster.com/support
Best regards.
I did it, but I have a problem:
In the image if you see I have placed a mínimum in each field:
http://i57.tinypic.com/29x7qjp.jpg
154,50
500
90And 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
Any help.?
Hi,
Please post the question at the support system: http://wordpress.dwbooster.com/support
Thank you!
The topic ‘How to make operation’ is closed to new replies.