12 Replies · Latest reply on Jan 3, 2018 2:01 PM by Laurie Marlowe

    Can someone help me in determining value of a field from other field values? also, please let me know where to write that code.

      I wrote the below code but it is not working.

       

        var a = parseInt(g_form.getValue('u_basic'));

        var b = parseInt(g_form.getValue('u_hra'));

        var c = parseInt(g_form.getValue('u_variable_pay'));

        var d = parseInt(g_form.getValue('u_medical_allowances'));

        var e = parseInt(g_form.getValue('u_travel_expenses'));

        var f = parseInt(g_form.getValue('u_other_allowances'));

        var g = parseInt(g_form.getValue('u_pf'));

        var h = a+b+c+d+e+f+g-h;

        g_form.setValue('u_net_pay',h);

       

       

      Thank you

      Obul