Forum Documentation Showcase Pricing Learn more

Javascript toolbox plugin in api workflow


#1

Hey, community!
Got a question:
On the API workflow I would like to run a calculation with JS:

<script>
var a = 1.79;
var b = 1.69;
var x = 100 - Math.abs(100-(100*a/b));
document.write(x);
</script>

however can’t get the result of the calculation in the “next step” of the workflow… Does anyone know how to possibly make it work? Thank you!


#2

OK, find the solution. Needed to update Javascript toolbox plugin and use a server script action :+1:


#3

You can remove the question if it fixed from Toolbox plugin - collection of utility elements :wink: