• Resolved inicolabug

    (@inicolabug)


    Hi i’m trying to make a quotation form but i can’t figure out how to make the equations i have fieldname 1 dropdown menu and fieldname 2 dropdown menu when fieldname 1 choice1 + fieldname 2 choice 1 = fieldname x (hidden field ) with € value and the other 10 fields with radio buttons yes and no and each fields if is yes and a certain % to the previous values (fieldname x) and at the end a calculation to ad taxes and accessories to the final values.
    i hope u can help me to create the correct equations with calculations and right conditionals thank u in advance Ciao Nicola

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

Viewing 5 replies - 16 through 20 (of 20 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    Please, don’t take the explanations as literal code, the correct equation would be:

    (function(){
    var result = 0;
    if( fieldname1==1 && fieldname2==1) result=184.10;
    if( fieldname1==1 && fieldname2==2) result=329.00;
    var radioBtns = fieldname5;
    
    if(radioBtns == 6) result *= 0.9;
    return result;
    })()

    I’m sorry, but I cannot continue implementing your equations step by step, if you need additional help you should hire a custom coding service.

    Best regards.

    Plugin Author codepeople

    (@codepeople)

    Hi,

    Your current question is about Mathematic, and it is not related with plugin. If you want increase a number in a 10%, you should multiply the number by 1.1

    The number 5, increased in a 10% = 5*1.1 = 5.5

    Best regards.

    Thread Starter inicolabug

    (@inicolabug)

    yes, thanks a lot for ur help now the first step now works perfectly ?? many many many thanks
    now i try the % in the radio button i think to do in a different way because the % need to process different number so maybe i can try something like this

    if(radioBtns == si) (result*fieldname7)(value10) and then (result/fieldname8)(value100) ;
    something like this but written well now i try to arrange the correct coding for this.
    thanks again best regard

    Thanks its Help to me too..

    Plugin Author codepeople

    (@codepeople)

    Hi,

    As I’ve indicated previously, if you want increase the value in a 10%, the conditional statement, should be modified as follows:

    if(radioBtns == 6) result *= 1.1;

    Best regards.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘equations with calculations and conditionals’ is closed to new replies.