- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
I have modified the code to work in the FormCalc..
In your code you are not checking for the null value in the field. I am substituting 0 to null.
To try this code, you need to place it in Calculcate event fot he field where you want the multiplication to be displayed. Change the langauge to FormCalc.
var count = field1.rawValue;
if(count == null) then
count = 0;
endif
var price = field2.rawValue;
if(price == null) then
price = 0;
endif
if(count ne 0) then
$.rawValue = count.value * price.value;
else
$.rawValue =0;
endif
Let me know if you have any issues..
Thanks
Srini
Views
Replies
0 Likes
Total Likes