• Resolved aespada

    (@aespada)


    I just need minor revision to this equation:

    IF(AND(fieldname1,fieldname2), PREC(215/fieldname5+fieldname12*0.15+fieldname13*0.15,2), ”)

    Instruction:
    If the guest enter less than 30 to fieldname1 it will charge 0.30 instead of 0.15, and if the guest enter greater than 10 to fieldname2 it will charge 0.30 instead of 0.15

    Thanks!

    https://ww.wp.xz.cn/plugins/calculated-fields-form/

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

    (@codepeople)

    Hi,

    I’ve answered to your question through our support system:

    The equation would be:

    (function(){
    if(AND(fieldname1,fieldname2))
    {
    var r = 0.15;
    if(fieldname1 < 30 || fieldname2 > 30 ) r = 0.30;
    return PREC(215/fieldname5+fieldname12*r+fieldname13*r,2);
    }
    return ”;
    })()

    If you need additional help for implementing the equations, we can offer you our custom coding services.

    Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Minor Revisions’ is closed to new replies.