Currency fields

J P Rohini
Tera Contributor

Hello all,

How to calculate the currency fields: Capital Budget and Operating Budget and summed of these fields should show in the customized field i.e., Total estimated budget.

For example: Capital Budget +  Operating Budget = Total estimated budget 

                                    10       +              10             =                20

find_real_file.png

Any idea how we can achieve above scenario, i have tried using client script but not able to get the values of Capital and Operate budget fields.

Any help is appreciated!

Thanks in advance!

1 ACCEPTED SOLUTION

Saiganeshraja
Kilo Sage
Kilo Sage

var fieldm = g_form.getValue('field_name');
var val1 = fieldm.split(';')[1];	
var val1int = parseInt(val1);

View solution in original post

6 REPLIES 6

Saiganeshraja
Kilo Sage
Kilo Sage

var fieldm = g_form.getValue('field_name');
var val1 = fieldm.split(';')[1];	
var val1int = parseInt(val1);

Thank you Sai!

can I know why did you used finalOffer in the second line of code? 

USD;100 -- Like this currency value is stored.

Okay i will try and let you know the status..