I get the following error when using the #CALC_SUM method (client_side):
Uncaught SyntaxError: Unexpected token ILLEGAL
The method is working fine on server-side (trigger).
Full code:
<script> var totalPrice = parseFloat(#CALC_SUM.R47972( total_price | true)); </script>
#CALC_SUM lives on server-side and cannot be used in client-side script. Please use [tag:EVAL][] block to fetch server-side values to client-side script:
<script>
var totalPrice = parseFloat( [tag:EVAL][ #CALC_SUM.R47972( total_price | true) ] );
</script>
#CALC_SUM lives on server-side and cannot be used in client-side script. Please use [tag:EVAL][] block to fetch server-side values to client-side script:
<script>
var totalPrice = parseFloat( [tag:EVAL][ #CALC_SUM.R47972( total_price | true) ] );
</script>