Avatar

Level 10

Sorry, wrong end of the stick!!

I would be inclined to call the functions and assign the global variables in one step and then concatenate them in FormCalc.

I am not sure if I would include two function calls within a calculation. Not saying it can't be done, but you may want to test it first by sending the result to a textfield first where you can see the results during testing.

The only thing in your mockup of the script is that you appear to be missing the name of the script object (js.). Also if your script object is off the main node path, you may need to include a full SOM.

Try the javascript console to see what is going on when previewing.

Hope you get it running,

Niall