I have a form where I need to subtract two values from another value but it can't show a negative number as the result.
So it's a -(b+c). If a becomes -10 then I need a script to just show a zero in that total field.
I'm thinking in javascript but I'm still writing it in pig latin. Please help.
Solved! Go to Solution.
Views
Replies
Total Likes
I am not sure of the java but in formcalc it would be:
if (a - (b+c) > 0) then
$ = a - (b+c)
else $ = 0
endif
(in the calculate field of the total box)
Views
Replies
Total Likes
I am not sure of the java but in formcalc it would be:
if (a - (b+c) > 0) then
$ = a - (b+c)
else $ = 0
endif
(in the calculate field of the total box)
Views
Replies
Total Likes
Worked like a charm. Thanks.
Views
Replies
Total Likes
Views
Likes
Replies