Adding or subtracting with trans in shortcode
-
Hi,
Is it possible to use trans to work out an addition or subtraction?
I can use bcmul and bcdiv to display multiplications and divisions of numbers entered into CF7, but bc add and bcsub don’t seem to do anything.
For example, this works fine –> [cfdb-value filter=”Submitted Login=$user_login” form=”Assessments” orderby=”Date desc” limit=”1″ show=”Cals” trans=”Cals=bcmul(Weight,33.21,0)”]
But this doesn’t –> [cfdb-value filter=”Submitted Login=$user_login” form=”Assessments” orderby=”Date desc” limit=”1″ show=”Name” trans=”Name=bcsub(Weight,10,0)”]
Any help would be greatly appreciated 🙂
Thanks,
Jon
The topic ‘Adding or subtracting with trans in shortcode’ is closed to new replies.